Tony is planning to visit his friend who lives 12 miles away. On his way to his friend's house, Tony rides his bicycle at an average speed of 6 MPH. On his way back, he gets a ride and travels at an average speed of 24 MPH. What is Tony's average speed for the entire trip? Let's think step by step and output the final answer within \boxed{}.
user