Lengths of trains:
Train A = 210 m
Train B = 140 m
Total distance to be covered to completely cross:
210+140=350 m
Speeds:
Slower train = 80 km/h
Faster train = 150 km/h
Since they move in the same direction, relative speed:
150−80=70 km/h
Convert relative speed to m/s:
70×185=18350 m/s
Time taken:
Time=350/18350=18 seconds
Convert seconds to minutes:
6018=0.3 minutes