Carlo walks over a railway bridge. At the moment that he is precisely ten meters away from the middle of the bridge, he hears a train coming from behind. At that moment, the train, which travels at a speed of 25 m/s, is exactly as far away from the bridge as the bridge measures in length.

Without hesitation, Carlo rushes straight towards the train to get off the bridge. In this way, he misses the train by precisely four meters. Had Carlo rushed exactly as fast in the other direction, the train would have hit him eight meters before the end of the bridge.

What is the length of the railway bridge?