Solution:
Arranging the data in the ascending order
1,2,2,3,4,5,5,6,7,7,8
Here number of terms, n = 11
Here n is odd.
So median = [(n+1)/2 ]th observation
= (11+1)/2
= 12/2
= 6th observation
Here 6th observation is 5.
Hence the median is 5.