There are
boys and
girls. We know that
(since there are twenty-two students in total)
(since the number of boys is two more than three times the girls)
From the first equation, we can derive

Substitute this expression in the second equation to get

Expand:


