Answer:
23 students
Explanation:
We assume the wording "when 5 rows of seats are filled, 2 seats remain empty" means that there are 2 empty seats in the 5th row (which then would not be filled).
If n is the number of seats in a row, we think the problem statement means ...
5n -2 = 4n +3
n = 5 . . . . . . . . . . add 2-4n
Then 5(5)-2 = 23 = 4(5) +3.
There are 23 students in the class.