Let the speed of the car which started from the
place A = x kmph
and B = y kmph
Distance travelled by first car in 5h = x and in 1h = x
The distance covered by second car in 5h = y and in 1h = y
By problem when travelled in same direction,
x – y = ⇒ x – y = …… (1)
and when travelled towards each other
x + y = ……. (2)
Solving (1) and (2),
x - y =
x + y =
Substituting x = in equation (1) we get
– y = 20
⇒ y = – 20 = kmph
Thus the speed of the cars are kmph and kmph.