Two trains are approaching each other from opposite directions with the speeds 10 miles per hour and 20 miles per hour, and heading for a collision. If they are a quarter mile apart, how long will it take for them to collide?

Two trains are approaching each other from opposite directions with the speeds 10 miles per hour and 20 miles per hour, and heading for a collision. If they are a quarter mile apart, how long will it take for them to collide?