From an airplane flying over the ocean, the angle of depression to a submarine lying under the surface if 24 degrees 10 minutes. At the same moment, the angle of depression from the airplane to a battleship is 17 degrees 30 minutes. The distance from the airplane to the battle ship is 5120 ft. Find the distance between the battleship and the submarine.