The barbs are 7 equal units. Three units are female, so the other 4 units are male = 12.
Plain numbers are given; italic underlined numbers are worked out.
In total Max bought 21 tiger barbs.
Check: female = 3 × 3 = 9; 9 + 12 = 21. ✓