Take 5C as 1 unit. 5B is 2 more than 5C, and 5A is 3 more than 5C. The three classes make 3 units + 5 = 119.
Plain numbers are given; italic underlined numbers are worked out.
5B and 5C have 78 pupils altogether.
Check: 5C 38 + 5B 40 + 5A 41 = 119. ✓