Using the formula, E=λhc​The approx value of hc=120eV⋅nmE=300nm1240eV⋅nm​=4.13eVFor Mg:4.13eV>3.7eV, so electron will be ejectedFor Cu:4.13eV<4.8eV, no electron ejectedFor Ag:4.13<4.3eV, no electron ejectedFor Na:4.13>2.3eV, so electron will be ejectedThus, 2 metals will eject electron.