Let's solve this problem step by step.
Let's assume the number of males in the class is represented by "M". According to the problem, the number of females is 6 less than the number of males. So, the number of females can be represented as "M - 6".
The total number of students in the class is given as 48. Therefore, we can write the equation:
M + (M - 6) = 48
Simplifying the equation, we get:
2M - 6 = 48
Adding 6 to both sides of the equation:
2M = 54
Dividing both sides of the equation by 2:
M = 27
So, the number of males in the class is 27.
To find the number of females, we substitute the value of M back into the equation:
F = M - 6
F = 27 - 6
F = 21
Therefore, the number of females in the class is 21.
To summarize:
Number of females: 21
Number of males: 27