There are between 24 and 40 students in a class.
The ratio of boys to girls is 4:7
How many students are in the class?