If the girls make up 3/5 of the class, then girls are 60% of the class.
Then, we can use the formula for percents:
[tex]\text{Total}\cdot\frac{\text{percent}}{100}=\text{Equivalent number to the percent}[/tex]Substitute, percent and the equivalent number to the percent and we can solve for the variable ''Total'':
[tex]\begin{gathered} \text{Total}\cdot\frac{60}{100}=24 \\ \text{Total}=\frac{24\cdot100}{60} \\ \text{Total}=40 \end{gathered}[/tex]There are 40 students in the class.