There are 39 students in the gym, and there are an equal number of students in each class. If three classes are in the gym, how many students are in each dass?​