With those codes we must be talking about an 88 - 89 van......right? Code 22 is an ECU Temp Sensor code, but if that sensor is bad the van will run REALLY bad, so I'm guessing that's an old code that wasn't cleared. Code #51 is almost always a bad TPS. I would recommend clearing codes, driving the van around for a day or so, then check codes again. If code 51 comes back I'd replace the TPS. Based on my experience with these vans, if the TPS has more than 100k miles on it or if it has an unknown history, I'd probably just go ahead and replace it. Keep in mind there's an adjustment procedure, so familiarize yourself with that before you do the job. I posted a video of how that's done at the end of the 1st post in
THIS THREAD. Tim