how to connect a m7000 swimming pool pump to a above the ground intex pool?

I have a intex pool and the pump quit working. a friend gave me a m7000 pump, the old pump only had 2 hoses to connect to the pool and the m7000 has 3. what is the 3rd hose for and how do I connect it to my pool