A train travelling at a speed of 80 kmph enters a tunnel that is 0.5 km long.
The length of the train is 0.25 km.
How long does it take for all of the train to pass through the tunnel, from the moment the front enters, to the moment the rear emerges?