Where does the heat for geothermal energy come from?

A. From the sun's ultraviolet rays

B. From magnetic waves in the Earth

C. From steam produced by the Earth

D. From warm sections of the ocean