A photon of wavelength 3310 Aofalls on a photo cathode and an electron of energy 3 x 10-9Jis ejected. If the wavelength of the incident photon is changed to 5000 Ao,the energy of the ejected electron is 9.71 x 10-20 J.Calculate the value of Plank's constant and threshold frequency.