Explanation:
Let's start by defining some variables:
Let's call the number of males in the class "m"
We know that the number of females is 5 less than the number of males, so we can say that the number of females is "m - 5"
We also know that there are 33 students in total, so we can say that:
m + (m - 5) = 33
Simplifying the equation:
2m - 5 = 33
Adding 5 to both sides:
2m = 38
Dividing both sides by 2:
m = 19
So there were 19 males in the class.
To find the number of females, we can use the equation we defined earlier:
f = m - 5
f = 19 - 5
f = 14
So there were 14 females in the class.
Therefore, there were 19 males and 14 females in the class.