In a survey, 45% of the people preferred tea over coffee. If 180 people preferred tea, how many people were surveyed in total? Let's think step by step and output the final answer within \boxed{}.
user