3 240v circuits connected to 2 double pole 30a square d breakers?
I can't think of any way this could be code compliant wiring, but it might make more sense if we knew what the circuits were supplying.