P0340 - Faulty Cam Position Sensor
http://myfastgti.com/volkswagen/thre...it-malfunction
P0172 - Rich Fuel Reading O2 Sensor Position 1(upstream closer to engine before cat)
http://forums.vwvortex.com/showthread.php?3614985
I would first check under your intake manifold for vac and boost leaks. REPLACE your Cam Position Sensor. They're fairly cheap and easy to replace(2 bolts). If no vac or boost leaks, replace the MAF sensor and 1st O2 sensor. This will be a bit more pricey but with the miles on your car it's probably a good idea at this point.
Bookmarks