Plz and This there’s is more because it’s an assessment

Answer:
33 students
Step-by-step explanation:
Since there aren’t going to be fractions of people, you can just count up using the whole numbers in the ratio (4 on the left, 7 on the right) and then check if the sum is between 24 and 40.
4:7 = 11 students (not enough)
8:14 = 22 students (not enough)
12:21 = 33 students (fits criteria)
12 boys, 21 girls, for a total of 33 students.