Sarah and John are planning a road trip. Sarah drives the first part of the trip at an average speed of 60 miles per hour. John drives the remaining part of the trip at an average speed of 75 miles per hour. If the total distance of the trip is 360 miles and the total time taken is 5 hours, how many miles did John drive? Let's think step by step and output the final answer within \boxed{}.
user