Speed of train = 90 km/h = 90 × \frac{1000}{3600} = 25 m/s. Time taken to cross tunnel = 40 s. Let the length of the train be L meters. The train covers the length of the tunnel plus its own length while crossing. Total distance covered = 400 + L meters. Using formula: \[\text{Distance} = \text{Speed} \times \text{Time}\] \[400 + L = 25 \times 40 = 1000 \text{ meters}\] \[L = 1000 - 400 = 600 \text{ meters}\]