In a class of 40 students with 72% female:
40 × 0.72 = 28.8 female students.
Since a person cannot be fractional, this implies either the percentage is approximate or the class size varies; practically, it would be 29 females (rounding) or the figures are statistical averages.