A clean metal surface is lit first by light of wavelength 400nm and then by light of wavelength 250nm. The maximum speed of the photoelectrons ejected by the 400nm light is half the maximum speed of those ejected by the 250nm light. Take hc=1240eV nm. What is the work function of the metal?