From photoelectric effect equation, we can write E=ϕ+Kmax
and work function can be written as ϕ=λ0hc.
Also, maximum kinetic energy Kmax=eV0
For first case:
8e=λhc−λ0hc ... (i)
For second case:
2e=3λhc−λ0hc ... (ii)
After using equation (ii) in (i), we get
4(3λhc−λ0hc)=λhc−λ0hc
⇒λ0=9λ