I could fix that at my shop if you were local for less than $50 including labor. I have customer's that want to be cheap and just remove the flange and put pipe in. If you wanted the flanges it will cost more but easier to remove. I found them for like $20 ea (Napa) and weld them on if the pipe isn't rotted out too bad.
Sent from my XT1080 using Tapatalk