Since the work function of the first material is greater than that of the second material, it requires more energy to eject photoelectrons and as such will impart lower kinetic energy to the ejected photoelectrons. Hence the photoelectrons ejected by material 2 will have a higher kinetic energy.