Trouble code troubles

I have a 2001 Subaru Outback. It recently started throwing two codes, P0328 and P0420. It is also idling rough, sluggish on the highway and gas mileage is going down. I changed the plugs and wires but that does not seem to help. Whats up with the family chariot?

Duplicate post