The hardest part of the job is to find the right formula to use, and write it down. You've already done that ! The rest is just turning the crank until an answer falls out.
You wrote. E = m g h. Beautiful. Now divide each side by (g h), and you'll have the formula for mass:
m = E / (g h).
You know all the numbers on the right side. Just pluggum in, do the arithmetic, and you'll have the mass.
Only portions of the electromagnetic spectrum is visible to the human eye. Electromagnetic radiation in this range of wavelengths is called visible light which have wavelengths from about 390 to 750 nm that is; ultraviolet light and visible light.