Question: what is the relationship between the energy of an electron and its distance away from the nucleus?
Answer: The energy of an electron depends on its location with respect to the nucleus of an atom. The higher the energy of an electron in an atom, the farther is its most probable location from the nucleus.