By previous elements found in other stars, accurate guesses and lots of studying
When a force causes a body to move, work is done on the object by the force. Work is the measure of the energy transfer when a force 'F' moves an object through a distance 'd'. So we say that energy is transferred from one energy store to another when work is done, and therefore, energy transferred = work done.
Precisely around 1,800 miles below.