where does geothermal energy come from?

A. Heat of the sun
B. Tides and waves
C. Water heated magma
D. River, lakes, and other bodies of water ​