Answer
2.37 eV for green, 2.67 eV for blue.
Work Step by Step
The wavelength of the photon that is emitted has an energy equal to the energy gap.
$$E_g=hf=\frac{hc}{\lambda}$$
a. Green light.
$$=\frac{(6.63\times10^{-34}J \cdot s)(3.00\times10^8m/s)}{(1.60\times10^{-19}J/eV)(525\times10^{-9}m)}$$
$$=2.37 eV$$
b. Blue light.
$$=\frac{(6.63\times10^{-34}J \cdot s)(3.00\times10^8m/s)}{(1.60\times10^{-19}J/eV)(465\times10^{-9}m)}$$
$$=2.67 eV$$