To find the total number of students who stay for afterschool programs, we need to sum the number of students in each grade who participate in afterschool programs:
- 10th grade: 10 students
- 11th grade: 6 students
- 12th grade: 7 students
Now, we add these numbers together:
10 + 6 + 7 = 23
Thus, the total number of students who stay for afterschool programs is 23.
So, the correct response is:
23