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.
#### 800