there are 30 students in the class the number of boys in 8 more than four times the number of girls.

g+(4g+8)=30

5g=22
No integer solution. Is there a typo?

checking,
g=5 b=28 makes 33
g=4 b=24 makes 28
No way to make 30 total