Amanda has 40 pieces of fruit and 100 sweets to share amongst the students in her class. She is able to give each students an equal number of pieces of fruit and an equal number of sweets. What is the largest possible number of students in her class?