if there are 24 students and 5 less girls than boys , how many girls are in the class. I don't think there is a solution to this.

3 answers

I hope you had a typo.

G + 5 = B

B + G = 25

Substitute G+5 for B in the second equation and solve for G.
I think teacher made a typo because it cannot be solved as written, unless 14 1/2 boys and 9 1/2 girls which won't work.
One hermaphrodite? ;)