manojgmat
Two trains of length 100m and 250m run on parallel lines. when they run in the same direction it will take 70 sec to cross each other and when they run in opposite direction, they take 10 sec to cross each other. find the speed of faster train.
Alternative approach:
To cross each other (either in same or opposite direction), the trains have to cover a distance of 250 + 100 = 350 m (the faster train should cover the entire slower train and then its own length so that they completely cross each other)
When they run in the same direction, they cover this distance in 70 sec. So their relative speed in this case (which is the difference in their speeds) is 350/70 = 5 m/s
When they run in opposite directions, they cover this distance in 10 sec. So their relative speed in this case (which is the sum of their speeds) is 350/10 = 35 m/s
If sum if 35 and difference is 5, you should quickly jump to 20 and 15.
Note: We used the concept of relative speed here.
When 2 objects move in same direction, their relative speed i.e. speed relative to each other is the difference of their speeds.
When the 2 objects move in opposite directions, their relative speed i.e. speed relative to each other is the sum of their speeds.
Check this video for when to use relative speed:
https://youtu.be/wrYxeZ2WsEM