To find the number of boys in the class, we first need to calculate the number of girls in the class.
Given that 40% of the students are girls, we can calculate it as follows:
Number of girls = (40/100) * Total number of students Number of girls = (40/100) * 50 Number of girls = 0.40 * 50 Number of girls = 20
Now, to find the number of boys in the class, we subtract the number of girls from the total number of students:
Number of boys = Total number of students - Number of girls Number of boys = 50 - 20 Number of boys = 30
So, there are 30 boys in the class.