Tips on removing 89 Accord LXi thermostat housing from block?

How do you get to the two bolts? Does the distributor have to come off to get to them? I was wanting to change the D-ring there especially after I found the thermostat gasket hardened and stuck to the thermostat so I had to cut it off. Thanks a lot.

If it’s not broken, keep fixing it until it is…

The distributor does come out for one bolt - how to get to the other 12mm bolt? There is an exhaust related piece that looks like it can come out, but I don’t know if I’b be breaking a gasket and that I would have to have a replacement one handy. The area is very tight to work in. An offset 6 point box wrench? There is not much room to turn it.