In a certain charity event, $300$ people donated money. It was found that $\frac{1}{4}$ of the people donated $50$ dollars each, $\frac{1}{3}$ of the remaining people donated $30$ dollars each, $\frac{1}{2}$ of the remaining people after that donated $20$ dollars each, and the rest donated $10$ dollars each. How much total money was collected in the charity event? Let's think step by step and output the final answer within \boxed{}.
user