Just some convoluted musings ..
Adding the number of reading groups and the number of writing groups give 7 groups in total.
This means if the number of reading groups is even, the number of writing groups is odd and vice versa.
So the total number of students (The number of reading groups x 3 + the number of writing groups x 5) is always even x odd + odd x odd, that is, even + odd, that is, odd.
So the total number of students must be odd.
Now assume there is at least one reading group and at least one writing group.
To get the highest possible total number of students, let as many groups as possible be writing groups as writing groups contain the most students. -> 6 writing groups, 1 reading group.
This gives 6 x 5 + 1x3 = 33 students in total.
To get the lowest possible total number of students, let as many groups as possible be reading groups as reading groups contain the fewest students -> 6 reading groups, 1 writing group.
This gives 6 x 3 + 1x5 = 23 students in total.
So the actual number of students is an odd number which is larger than or equal to 23 and smaller than or equal to 33.
(I realise this is probably too complicated.)