2x2 System word problem?

An underwater(but near the surface) explosion is detected by sonar on a ship 30s before it is heard on deck. If sound travels at 5,000 ft/s in water and 1,000 ft/s in air, how far is the ship from the explosion?