The energy of the photon emitted in the 3→2 transition of hydrogen is Ephoton=13.6(221−321)=13.6×365≈1.89 eV.
These photons eject photoelectrons from gold. The maximum kinetic energy of photoelectrons is Kmax=Ephoton−ϕ, where ϕ is the work function.
The electrons with maximum kinetic energy follow the largest circular path in the magnetic field. Using r=eBmv, the maximum kinetic energy is Kmax=2mp2=2m(eBr)2.
Substituting e=1.6×10−19 C, B=5×10−4 T, r=7×10−3 m, m=9.1×10−31 kg:
Kmax=2×9.1×10−31(1.6×10−19×5×10−4×7×10−3)2=1.82×10−30(5.6×10−25)2=1.82×10−303.136×10−49≈1.723×10−19 J ≈1.077 eV.
The work function is ϕ=Ephoton−Kmax=1.89−1.077≈0.81≈0.82 eV.