set the speed of car A to x km/h
so the speed of car B is (5/7)x+5 km/h
250=(x+(5/7)x+5)*2
x=70
so the speed of car A is 70 km/h
and the speed of car B is 5/7*70+5=55km/h
set the speed of car A to x km/h
so the speed of car B is (5/7)x+5 km/h
250=(x+(5/7)x+5)*2
x=70
so the speed of car A is 70 km/h
and the speed of car B is 5/7*70+5=55km/h