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 are equal. If 5 students are shifted from room B to room A,the number of students in room A becomes double the number of students left in room B. Find the original number of students in the two rooms separately