We know that,
For electron
E=mc2.....(I)
Also,
λ=hmv
m=hλv
Now, put the value of m in equation (I)
E=hλv×c2
E=hc2λv
Now, for photon
E′=hν=hcλ...(II)
Now, dividing equation (I) by (II)
EE′=hc2λhc×λv
EE′=cv
Now,
EE′=cv
c>vEE′>1
E>E′
The total energy of an electron is greater than the total energy of a photon
Hence, this is the required solution