A class of 19 pupils has five more girls than boys. Let n = the number of boys.

n + (n + 19) = 5
n + (n + 5) = 19
n - (n + 5) = 19
n + (n - 19) = 5