The pupils are 9 equal units. Two units failed, so the other 7 units passed = 28.

[[model:questions/solutions/q3411.png]]

• Passed = 7 units → 28
• 1 unit → 28 ÷ 7 = 4
• Failed = 2 units → 2 × 4 = 8

The number who failed is 8.
Check: 8 failed + 28 passed = 36; $$\frac{2}{9}$$ of 36 = 8. ✓