Given the data below are the number of students in each age group.
Ages Number of students
15-18 9
19-22 8
23-26 2
27-30 5
31-34 7
35-38 3

Based on the frequency distribution above, find the cumulative frequency for the class with lower class limit 31.