Final answer:
To find the size of the class, we can set up the equation 0.45N = 18 and solve for N. Therefore, the class size is 40.
Step-by-step explanation:
To find the size of the class, we can use the fact that 45% of the class represents 18 students. Let's assume that the total number of students in the class is N. We can set up the equation 0.45N = 18 and solve for N.
0.45N = 18
N = 18 / 0.45
N = 40
Therefore, the class size is 40.