Here is the basics.
Main tank goes up top, sump goes below it. When all power is off the main tank should be full up to the bottom of the overflow teeth, the sump should be almost completely full. When you turn the power to the system on a pump will return water from the sump up to the main tank. That water will then cause the water level in the main tank to rise and some falls into the overflow where it then drains down to the sump to repeat the process.
What is the point you ask?
1. You can hide skimmers and heaters and other devices in the sump, out of site of the tank's viewers (you)
2. the falling water into the sump makes for a lot of air exchange in the water. That eliminates any need for air pumps and air stones that bubble in the main tank. That cuts down on salt creep around the main tank.
3. It increases the amount of water in the system which increases the amount of bioload (fish) that you can put in the main tank.
Now, the return pipe.
There are many ways to plumb that, you could have it come up the inside of the overflow and out through a bulkhead fitting, you could have it come up the back outside of the tank, over the top lip and down into the water, you could even put a bulkhead fitting near the top of the display tank and have it shoot through that.
Its really up to you
Hope that helps, Enjoy!