A train 100 m long travelling at 40 m/s starts overtaking another train 200 m long travelling at 30 m/s. The time taken by the first train to pass the second train completely is: