Two cars start out simultaneously from a point in the same direction, one of them going at a speed of 50 km/hr and the other at 40 km/hr. In half an hour a third car starts out from the same point and overtakes the first car 1.5 hours after catching up with the second car. The speed of the third car is