Answer:
25 boys, 15 girls
Step-by-step explanation:
You can setup 2 equations where b is the number of boys and g is the number of girls to get [tex]b+g=40[/tex] and [tex]b-8=g+2[/tex]. Simplifying the second equation gets you [tex]b-10=g[/tex] insert [tex]b-10[/tex] for g in the first equation to get [tex]2b-10=40[/tex]. Simplify this equation to get [tex]b=25[/tex]. To find the number of girls, substitute 25 for b in the first equation to get [tex]g=15[/tex]