Relative speed, when the trains are running in the opposite direction = Sum of the speed
Therefore, Relative speed = 36 km/hr +72 km/hr = 90 km/hr
Relative speed in m/sec = 90 km/hr x 5/18= 25 m/sec
Distance covered = sum of the lengths of the train = 200 m+ 300 m = 500m
Therefore, time taken = 500m / 25 m/sec = 20 sec