The pupils are 9 equal units. Two units failed, so the other 7 units passed = 28.
Plain numbers are given; italic underlined numbers are worked out.
The number who failed is 8.
Check: 8 failed + 28 passed = 36; 2⁄9 of 36 = 8. ✓