There are two classrooms, A and B, containing students. If 5 students are shifted from room A to room B, the resulting number of students in the two rooms become equal. If 5 students are shifted from room B to room A, the resulting number of students in room A becomes double the number of students left in room B. What is the number of students in the class with larger number of students?