Ten students raised a total of $20 x 10 = $<<20*10=200>>200.

There are 30 - 10 = <<30-10=20>>20 students who raised $30 each.

Twenty students raised a total of $30 x 20 = $<<30*20=600>>600.

Therefore, the students raised a total of $200 + $600 = $<<200+600=800>>800.

# Answer

800
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
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{{}}.<|im_end|>
<|im_start|>assistant

user
800
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?
train