The students of a class are made to stand in rows. If 3 students are extra in a row, there would be 1 row less. If 3 students are less in a row there would be 2 rows more. Find the number of students in the class.

Let the number of students in a row be ‘a’ and number of rows be ‘b’.


Given, 3 students are extra in a row, there would be 1 row less. If 3 students are less in a row there would be 2 rows more.


Number of students remain constant.


ab = (a + 3)(b – 1) = (a – 3)(b + 2)


Solving the above equations we get , a = 9 and b = 4


Thus, number of students = 36


20