If the teacher has a box of cookies and the first students in line takes 4 cookies each , then 5 students will be left withoutout. If the first students inline take 3 cookies each then 6 students will be left without.

How many students are there in the class?

My question is - how do you solve it i.e the calculations and the answer?