Tom swims for 2 hours at a speed of 2 miles per hour. He then runs for half the time at 4 times the speed. How many miles did he cover?