There are some students in Classroom A and Classroom B. If 5 students move from Classroom A to Classroom B, the two classrooms will have the same number of students. If 30 students move from Classroom B to Classroom A, then the number of students in Classroom B will be $\frac{1}{6}$ of the number of students in Classroom A. How many students are there in both classrooms in total?