It's fairly simple...all tanks overflow through a stand pipe of some kind down into a single large pipe that leads to main sump, The water then flows through mechanical and then bio-media to the pump.
The pump sends it back to the tanks via a single pipe thats tapped with valves above each tank.
This is a very simple sketch of what it would look like