how are geothermal from earth's internal heat and hydroelectric from water used as a source of energy

in your own reason or opinion​