I am writing a paper and I can’t figure out how the geothermal energy gets the electricty and what the steps are to getting it. If anyone knows please explain it to me. :)

(may be broke/outdated!)
I am writing a paper and I can’t figure out how the geothermal energy gets the electricty and what the steps are to getting it. If anyone knows please explain it to me. :)