different light waves have different frequencies. if u have a metal and u shine some light onto it, then that light would have a certain frequency.
the photoelectric effect is basically what occurs when light of sufficient frequency or energy shines onto a metal (cathode) and cause electrons...