Answer
$\lambda = 41.2~nm$
Work Step by Step
We can find an expression for energy of an electron in this potential well:
$E_n = (\frac{h^2}{8m~L^2})~n^2$
$E_n = \frac{h^2}{8m~L^2}~n^2$
$E_n = \frac{(6.626\times 10^{-34}~J~s)^2}{(8)(9.109\times 10^{-31}~kg)~(250\times 10^{-12}~m)^2}~n^2$
$E_n = (9.640\times 10^{-19}~J)~n^2$
$E_n = (9.640\times 10^{-19}~J)(\frac{1~eV}{1.6\times 10^{-19}~J})~n^2$
$E_n = (6.02~eV)~n^2$
Note that light with a shorter wavelength has more energy than light with a longer wavelength.
The second longest wavelength will be emitted when the electron jumps between states with the second smallest energy difference.
We can find the energy in the second excited state where $n=3$:
$E_3 = (6.02~eV)~(3)^2 = 54.18~eV$
We can find the energy in the first excited state where $n=2$:
$E_2 = (6.02~eV)~(2)^2 = 24.08~eV$
We can find the difference in energy:
$E_3-E_2 = (54.18~eV) - (24.08~eV) = 30.1~eV$
We can find the wavelength associated with this energy:
$\lambda = \frac{hc}{E}$
$\lambda = \frac{(4.136\times 10^{-15}~eV~s)(3.0\times 10^8~m/s)}{30.1~eV}$
$\lambda = 41.2\times 10^{-9}~m$
$\lambda = 41.2~nm$