Boys = 1 unit, girls = 4 units. The 24 more girls is the gap of 3 units. Total children = 5 units.
Plain numbers are given; italic underlined numbers are worked out.
There are 40 children.
Check: boys 8 + girls 32 = 40, and 32 − 8 = 24. ✓