In the back. See, the train is still accelerating as it is leaving the station so the train will be moving faster when the back of the train enters the tunnel.
In the back. The train will be accelerating so it will be going faster when the back of the train enters the tunnel so a person in the back will spend less time in the tunnel.