Tom is planning a road trip and needs to calculate the total distance he will travel. He plans to drive 150 miles to the first city, then another 120 miles to the second city. He also plans to visit a third city, which is 80% of the distance from the first city to the second city away from the second city. After visiting the third city, he will return home directly, which is 200 miles from the third city. What is the total distance Tom will travel? Let's think step by step and output the final answer within \boxed{}.
user