Question 332484
length of 1 train = 300 mtrs.
length of other train = 200 mtrs.
..
speed = 40 kmph
since they are travelling in opposite directions the effective speed will be 80 kmph.
1km/hr. = 5/18  mtrs/secnd
80 km/hr = 5/18* 80 = 22.22 mtrs/second
..
The total length of two trains is the distance they have to travel.
= 500 meters.
{{{Time = distance / speed}}}
{{{500/22.22}}}
= 22.5 seconds