The vertical pipes are vents for the sink , black tank and bath tub on our '69 Tradewind. They all connect in the corner and exit as 1 out the roof.
The horizontal pipes are the drain lines. They plus the kitchen sink lines all end at the dump valve. The kitchen sink has its own vent pipe.
Our trailer didn't have a gray tank.
The way they ran the drain and vent lines one would think they owned stock in the ABS industry
The last pic is what is looked like last month. Our new shower is going in the street side corner. It partially blocks the window.
I've run all new PEX and moved the battery and charger, added extra wiring from the new inlet. But that's another story.
I hope the pic's give you some insight on what you may have.