Two cities are 3500 miles apart. A plane leaves one of them, traveling towards the other at an average speed of 300 miles per hour. At the same time a plane leaves the other, traveling towards the first, at an average speed of 400 miles per hour. How long will it take them to meet?