Let the total number of students be x.
Now, according to your question, 90% of x = 180
= 90/100 * x = 180
90x = 18000
Thus, x = 18000/90
= 200.
Thus, the total number of students are 200. Out of these, 180 are taking algebra. Thus, 20 students are not taking algebra.