Speed is given by:
Let's call X the speed of car B in mph, then the speed of car A (let's call it Y) is given by x+15 mph.
The problem says car A travels 252 miles in the same time car B travels 216 miles. Then:
Now, replace Eq (3) into Eq(4) and solve for X:
Then, car B travels at 90 mph, now replace this value into Eq (3) and solve for Y:
Thus, the speed of car A is 105 mph.
Answer: the speed of car A is 105 mph and the speed of car B is 90 moh.