Given that the car A is at 100 m from the origin and car B is at 200 m.
At t = 0, car A starts with velocity 10 m/s and car B starts with velocity 5 m/s.
Suppose that at a time 't', car A crosses the car B.
Then in time 't' car B has travelled a distance 5t.
Therefore, car A has to travel a distance (200 – 100) = 100m + 5t to cross the car B.
100+5t=10t
⇒t=1005=20 seconds
After time = 20 seconds, car A will cross the car B.
Therefore, distance from origin where both car meet =200+5t=200+5×20=300m.