If 24 students went on a field trip, and 24 students represented eight tenths of the class, then

.
First, multiply by 10 on both sides.
240 = 8x
Divide by 8 on both sides.
x = 30.
The class has 30 students in all.
This is, however, only the equation way to solve.