A survey was conducted in a school to determine the favorite subjects of 120 students. The results were as follows:
Based on this data, what is the median number of students who prefer each subject?