Always
pull the codes & do some diagnosis before buying any parts. It's cheaper, faster, & more effective. That link has most of the code definitions, and a link to the full list.
172 R,C Right HEGO indicates lean
Sounds like an exhaust leak, or low fuel pressure, or a vacuum leak, or damaged wiring, or MAYBE a worn-out HEGO (but don't buy a new one without testing the old one first), or something else. But I doubt it's the TPS or IAC.