Speed of faster car is 68 m/h
Speed of slower car is 63 m/h
make an equation for both
equation for distance is distance = (speed) x (time)
315 = (speed) x (time)
340 = (speed+5) x (time)
solve for t in the first equation so t=(315/speed)
plug that answer for t into the next equation so 340 = (speed+5) x (315/speed) and now simplify/solve
340 = (speed+5) x (315/speed)
340= (315speed/speed) + (1575/speed)
340= 315 + (1575/speed)
25= 1575/speed
speed = 63
plug speed = 63 into the first and more simple equation
315 = 63 x time
time = 5
use time = 5 to check your answers...
63 is speed for slower car as you solved for speed, therefore the faster cars speed is (speed + 5) which is 68
63 x 5 = 315
68 x 5 = 340