22 students
If there are equal teams of 5 for basketball, that means that there are 5 students on each team which would equal 10 in total. And if 6 students are on each team for volleyball, that would equal 12 in total. Then to find how many students are in the class you would add these together.
10+12= 22 students
Hope this helped!