To solve this problem, you can use a Ratio Box (screenshot attached).
Plug in the value of the Ratios at the top. Since the Ratio is 3:2 add those numbers together to get 5.
From there you will want to figure out what the multiplier is in order to get the actual number of boys and girls in the class according to the ratio. Since we know that there are 24 students total, divide 24 by 5. 24 ÷ 5 = 4.8, which becomes your multiplier.
In order to get the actual number of Boys and Girls in the class according to the ratio of 3:2, multiply 3 × 4.8 and 2 × 4.8 to get 14.4 Boys, and 9.6 Girls respectively.
Since you cannot have fractions of a person, you can't have 24 students in the class per this 3:2 ratio.