Two cars with average speeds of 40 and 50 km/h,respectively,moved toward each other at 4:00 a.m. If the square of the distance traveled by the second car is 250 times the distance traveled by the first car, at what time will they meet? How far has each traveled by then?