The Speeding Train-Brain teaser

Riddle

A train 1 mile long is traveling at a speed of 1 mile per minute through a tunnel 1 mile long. How long will it take for the train to completely pass through the tunnel?

    It will take 2 minutes. The front of the train takes 1 minute to exit the tunnel, but the back still needs another minute to completely pass through.