Explanation:
The p-type semiconductor doesn't have greater energy than the n-type semiconductor. This is because the semiconductor itself doesn't really have an energy. Charge carriers (electrons/holes) have energies. The relative positioning of the bands tell you how much energy an electron or a hole must have for it to exist.