Places A and B are 100 km apart on a highway. One car starts from A and another from B at the same time. If the cars travel in the same direction at different speeds, they meet in 5 hours. If they travel towards each other, they meet in 1 hour. What are the speeds of the two cars?
Let the speed of first car at A be x kmph
and the speed of car at B be y kmph
when the cars travel in same direction Relative Speed is S=x−y
DistanceD=100 km
Time, t=5 hours
Since, Speed=Distance(D)Time(T)
∴ Distance D=S×T
Substitute given values, we get
⇒100=(x−y)×5
∴x−y=20.......(i)
when cars travel in opposite direction Relative Speed is x+y
Distance=100 km
t=1 hours
Distance D=ST
⇒100=(x+y)
x+y=100.......(ii)
Adding equations (i) & (ii), we get
x−y+x+y=20+100
⇒2x=120
∴x=60 km/h
From equation(i), y=60−20
∴y=40 km/h
Hence, Speed of the car at A=60 km/h and
Speed of the car at B=40 km/h