Question 1020446
7 being the mean of the eight numbers means that
{{{(5+8+x+x+6+y+6+5)/8 = (30+2x+y)/8 = 7}}}
==> 30+2x+y = 56
==> 2x+y = 26
Only two positive integers both less than 10 will satisfy the last equation, namely {{{highlight(x = 9)}}} and {{{highlight(y = 8)}}}.

Now that x and y are known, arrange the positive integers in an array:

5,5,6,6,8,8,9,9

The median of the data set will be the average of the two middle terms 6 and 8, namely {{{highlight(7)}}}.