A train 200 m long enters at 5 m/s and exits at 3 m/s from a bridge 300 m long. The time taken by it is