There were two groups of students at a gathering. Group 1 had 22 more students than Group 2 at first. When 5 students from Group 2 joined Group 1, the number of students in Group 1 was 4 times the number of students in Group 2. How many students were there in Group 2 at first?