A class of students participated in a math competition, and their scores are as follows:
78, 82, 84, 90, 85, 92, 88, 76, 91, 87
Calculate the median score of the students. The median is the value separating the higher half from the lower half of a data sample.