Tom and Phillip are participating in a charity marathon. Tom runs at a speed of 6 miles per hour and Phillip runs at a speed of 8 miles per hour. If both start running at the same time and continue for 3 hours, how many miles do they run in total? Let's think step by step and output the final answer within \boxed{}.
user