Sarah is organizing a charity run. Each participant pays a registration fee of $25. Additionally, participants can choose to buy a commemorative T-shirt for $10 each. This year, 40 participants registered for the run, and 30 of them bought the T-shirt. How much total money was collected from registrations and T-shirt sales? Let's think step by step and output the final answer within \boxed{}.
user