When I had my MAg 9.5 running inline I attached the appropriate length pipes (or in my case hoses) to each inlet/outlet on the pump, the one on the outlet I plumbed into the bulkhead for the return, and the one for the inlet I ran from the pump over the side of the sump and then down into the water. I am not sure exactly how your tank is plumbed but that is how I did mine.