Page 38 states that 37.8% of staff were male.
Therefore 31312 x (37.8/100) = 11835.936.
Add to that temporary male employees: 340 (African) + 77 (Coloured) + 64 (Indian) + 238 (White) + 34 (Foreign) = 753
11836 + 753 = 12589