Answer:
17 boys and 11 girls
Explanation:
Create a system of equations where b is the number of boys and g is the number of girls:
b + g = 28
b = g + 6
Solve by substitution, by substituting the second equation into the first one:
b + g = 28
(g + 6) + g = 28
2g + 6 = 28
2g = 22
g = 11
So, there are 11 girls.
Since there are 6 more boys than girls, there are 17 boys.
So, there are 17 boys and 11 girls in the class.