A survey was conducted among 50 middle school students about their favorite types of extracurricular activities. The results indicated the following breakdown:
- 12 students preferred sports.
- 18 students preferred arts.
- 10 students preferred music.
- 10 students reported they had no preference.
What is the median number of students that preferred each type of extracurricular activity?