There are 12 more girls than boys in the class. 35 % of the class are boys. How many pupils are there in the class?

g = b+12

b/(b+g) = 35/100

...