The work function for aluminium surface is 4.2 eV and that for sodium surface is 2.0 eV. The two metals were illuminated with appropriate radiations so as to cause photo emission. Then :
w0=hv0, thus the greater work function, the higher is the threshold frequency and hence the lower is the threshold wavelength.