Answer:
17 females and 25 males
Explanation:
Let x be the amount of females, then the amount of males would be...
x+8
We can use this to set up an equation...
females + males = 42
x+x+8=42
2x+8=42
Subtract 8 from both sides
2x=34
Divide both sides by 2
x=17
x+8=25
There are 17 females and 25 males in the class