On the field trip students were split into 5 equal groups. At lunch time 10 students needed to go to the bathroom, while the other 45 went to go eat lunch. How many students were in each group?