Answer:
24 males
7 females
Explanation:
Step 1: Write the data
Total number of students: 31
Number of males: x
Number of females: x - 17
Step 2: Form an equation
males + females = total students
x + x - 17 = 31
2x = 48
x = 24
There were 24 males
Step 3: Find the number of females
Number of females = x - 17
Number of females = 24 - 17
Number of females = 7
Therefore, there were 24 males and 7 females in the class.
!!