In a charity event, participants can donate either $10, $20, or $50. If one-third of the participants donated $10, half of the remaining participants donated $20, and the rest donated $50, how many participants were there if the total amount collected was $1200? Let's think step by step and output the final answer within \boxed{}.
user