A science class has a total of 48 students. The number of females is 6 less than the number of males. How many males and how many females are in the class?

Number of females: ?
Number of males:?

Let's assume the number of males is M.

According to the problem, the number of females is 6 less than the number of males, so the number of females is M - 6.
The total number of students in the class is the sum of the number of males and the number of females, which is M + (M - 6) = 48.
Combining like terms, we get 2M - 6 = 48.
Adding 6 to both sides, we get 2M = 54.
Dividing both sides by 2, we get M = 27.
So, there are 27 males in the class.
The number of females is M - 6 = 27 - 6 = 21.
Therefore, there are 21 females in the class. Answer: \boxed{21, 27}.