Thirty students run in a charity race to raise money for the hurricane victims. Ten of the students raised $20 each. The rest of the students raised $30 each. How much did the students raise in all?
Please reason step by step, and put your final answer within \boxed{}.
user