If "n" is the number of students in the class, then the number of possible pairs is . Your equation is = 45, or n*(n-1) = 90, which implies n = 10. Answer. There are 10 students in the class.