Two cars leave an​ intersection, one traveling west and the other south. After some​ time, the slower car is 7 mi nearer to the intersection than the faster car. At that​ time, the two cars are 13 mi apart. How far did each car​ travel?