Answer:
total number of students = 40
Explanation:
45% of total is 18 girls
100% represents the total number of students
let x be the total number of students in the class
solve using proportion

=
( cross- multiply )
45x = 1800 ( divide both sides by 45 )
x = 40
total number of students in the class is 40