Let T = the time the first care traveled.
The 50T is the distance traveled by the first car.
40(T+2) is the distance traveled by the 2nd car and it is 10 miles less than the 1st car, i.e.
50T = 10 +40(T+2)
50T = 40T + 90
You should be able to solve it from here...and if not, send me a message.

Paul M.
01/11/19
Isha M.
Thank you so much!12/16/18