Tom and Brian are hiking towards each other at the opposite ends of a trail that is 21 miles long. Tom hikes uphill at a speed of 2 miles per hour. Brian is hiking downhill at a speed of 4 miles per hour. How long will it take for the two to meet?