Failed = 25% = 1 unit; passed = 75% = 3 units, so the whole class is 4 units. The 16 extra pupils make up 2 units.
Plain numbers are given; italic underlined numbers are worked out.
There are 32 pupils in the class.
Check: failed 8 + passed 24 = 32; 8 is 25% of 32. ✓