Let the number of boys be x and the number of girls be y.
x+y=10...(1)y=x+4, i.e. x−y+4=0...(2)
Table of values for (1), y=10−x:
Table of values for (2), y=x+4:
Plot A(0, 10), (4, 6), B(10, 0) and join them to get line (1); plot D(−4, 0), C(0, 4), (1, 5) and join them to get line (2).

The two lines intersect at P(3, 7), so x=3, y=7.
Check: 3+7=10 and 7=3+4.
So 3 boys and 7 girls took part in the quiz.