This question was asked in Ex 1.3, 1
The median of the  distribution is 2 ,3,4,7,5,1,8
Nelson Ananth's image