To solve this problem we will use the concept related to electrons in a box which determines the energy of an electron in that state.
Mathematically this expression is given by,

Where,
m = mass of an electron
h = Planck's constant
n = is the integer number of the eigenstate
L = Quantum well width
The change in energy must be given in state 1 and 2, therefore



Replacing we have:


Therefore the correct answer is C.