Ms Quarles gave the same math unit test to all her classes. She grades 25% of the test, which is 30 papers. How many students does she have in total?

Let T be the total number of students in Ms Quarles's classes.

There are T / 4 * 25% = T / 4 * 0.25 = T * 0.25 / 4 = T * 0.0625 = 30 students in each of her classes.
Thus, there are T * 0.0625 * 4 = T students in total. Answer: \boxed{480}.