Of the student in Tom's class, 2/3 had perfect attendance this year. Of Maya's class, 3/4 have also been at school each day. In each class, there are 24 students who have not missed a day of school. How many students are in each class ? ( Explain how you found the answer. )