You can put this solution on YOUR website! let x be the total number of students
we are given that 30% of all students are boys, so 1 - 0.30 = 0.70 and 70% of all students are girls, then
0.70x = 21
x = 21 / 0.70 = 30
there are 30 students in the class