plzzzzz help me i have an assignment on geothermal energy and i need to find out how geothermal energy converts to electrical energy

(may be broke/outdated!)
plzzzzz help me i have an assignment on geothermal energy and i need to find out how geothermal energy converts to electrical energy