A submarine was floating on the water. It went under the water at a rate of 0.5m/second for 3 minutes. It then started to rise towards the surface at a rate of 0.7m/second for 1.5 minutes. What is the depth of the submarine?