Answer
Please see the work below.
Work Step by Step
We know that the second metal has a greater work function (the minimum energy required to eject an electron) as compared to the first metal. Thus, a shorter wavelength photon with higher frequency/energy will supply the additional energy to eject an electron from the other surface.