A study was conducted in a classroom to find out how many hours students spent on homework each week. The results were as follows:
Based on the data collected, what is the median number of hours spent on homework by the students?