Average cost of a residential geothermal system: $15k to $38k[1]
Average cost of solar panel roof: $11k to $14k after tax credits[2]
Also your roof shingles should be 10 years old or less before installation[3] (my roof shingles are definitely that old), so for a lot of people they'd have to replace their roof first, so tack on another $5.5k to $11k on top of that for many homes[4].
Total cost to meet your criteria: $26k to $62k.
I'd love for everyone to have solar panels and geothermal heat pumps, but I get why it hasn't happened very much yet. We need a lot more incentives (or major public/private infrastructure projects) to convert these more quickly.
(I realize there ads all over the internet for companies claiming they'll install solar panels for "free", but the BBB warns that those are often scams or can be more expensive for you in the long run[5]).
[1]: https://modernize.com/hvac/heating-repair-installation/heat-...
[2]: https://www.consumeraffairs.com/solar-energy/how-much-do-sol...
[3]: https://www.owenscorning.com/en-us/roofing/tools/solar-panel...
[4]: https://www.forbes.com/home-improvement/roofing/roof-replace...
[5]: https://www.bbb.org/article/scams/27595-bbb-scam-alert-free-...