A 120m long train is moving in a direction with speed 20m/s. A train B moving with 30 m/s in the opposite direction and 130 m long crosses the first train in a time
Total distance =130+120=250 m
relativity velocity =30-(-20)=50 m/s
hence t = 25050 =5s