if 5 students are made to sit in a row , then 6 do n ' t have seats . if 12 students are made to sit in a row , then 3 rows are empty . how many students have to sit a row such that each row has equal number of students and all students are seated ?