Q: How much am I looking at to get rid of these DTC codes: P0121, P1172,P1238 on 1999 Volvo S80

Rookie cbe0621eac06868b3efe0d8d1d3611e23c60d3114864ea2ec19a68cfbd3eebab
I was told to see a dealer, but I was trying to stay away from those prices.
(1) Answer
Here is what they mean:
P0121 Check Engine Light requested by the throttle unit
P1172 Long-term fuel trim (fuel mixture out of range)
P1238 Turbocharger (TC) control system flow Fault
It is hard to say what is causing these 3 codes to set. When a code is stored on a Volvo, and many other vehicles, it stores information such as how long ago it was set, how many times the fault has occurred etc. so it's hard to say without seeing this info which code is for real and which may have been in the system for a long time.
An experienced Volvo tech at a dealer may solve this issue in half the time as an inexperienced tech at another shop, but that's not always the case.
Be advised that there is an extended warranty on the throttle modules from Volvo, and they had a lot of problems. Only a dealer can perform recall work. See here for more info
You can start by performing a visual check of the intake pipes and hoses and see if any are split or loose, this may be an intake leak.