hi. it takes 5 minutes the train to pass the tunnel.
the length of train is not important because it should go for 1 mile to entirely get in the tunnel and also should go 1 mile to entirely get out of the tunnel so the whole way that the train goes is 5 miles that is the length of the tunnel so we have:

⇒x=0.083 hour=5 minutes