A school collected data on the number of hours each student spent on homework in a week. The data is summarized in the following table:
Hours | Number of Students |
---|---|
0 | 3 |
1 | 5 |
2 | 8 |
3 | 6 |
4 | 4 |
5 | 2 |
Based on the data:
What is the median number of hours spent on homework by the students?