If an electron is in an excited state it can return to a lower energy level. When it does this, it loses energy. The amount of energy it loses will be equal to the difference in the energy levels ...