If you want to/have to replace the heads, consider heads from a junker that you can have rebuilt or buying remanufactured. (To rebuild (valve job and resurfacing) figure $150-$200 each plus cost of the heads. Prob $700 each for reman from a place like rock auto. (If it got that hot, I’d be concerned about the block). Plus parts (gaskets, head bolts, coolant, oil, oil filter, plugs and maybe a timing belt and water pump depending on when they were changed) and labor to reassemble it.
You’ll have to consider age and condition of your X to see if it’s worth it.
Good luck!