Hello POnd
Let's set this up.
G = # girls in class
B = # boys in class
From the first sentence we know
G + B = 26
From the second sentence, we have
G = B + 4
Or,
G - B = 4
So our system of linear equations is
G + B = 26
G - B = 4
Since we have a +B in one equation and a -B in the there, we can add the two equations together and eliminate the B. This is elimination.
2G = 30
Solving for G
G = 15
Given that G-B=4,
B = 11
There are 11 boys and 15 girls.