3 fourth of a class are boys. The girls are 24 less than the boys. How many pupils are in the class?

b/(b+g) = 3/4

g = b-24

b/(2b-24) = 3/4
4b = 6b-72
b = 36
so, g=12

making 48 pupils in all