Complex sentence: The frequency of light emitted is a function of how far away in energy the two states of the system were, so that energy is conserved: the energy difference between the two states equals the energy carried off by the photon.
Split into simpler sentences: The frequency of light emitted is a function of the energy of the transition. Since energy must be conserved, the energy difference between the two states equals the energy carried off by the photon.