Two trains are running at 40 km/hr and 20 km/hr respectively in the same direction. Fast train completely passes a man sitting in the slower train in 5 seconds. What is the length of the fast train?
A. 23 m
B. $$23\frac{2}{9}$$ m
C. $$27\frac{7}{9}$$ m
D. 29 m
Answer: Option C
Why you taken 18 here
both the trains are moving in same direction. So the relative speed is (speed of faster- speed of lower train)=40-20=20km/hr=20*5/18=50/9 m/s.
Distance=speed*time
time=5 seconds
Now,
d=(50/9)*5=250/9=27 7/9 m