In a small classroom, there are three groups of students. The first group has 5 students, the second group has twice as many students as the first group, and the third group has 3 students less than the second group. How many students are in all three groups combined?