If the median of the distribution (arranged in ascending order) 1,3,5,7,9,x,15,17, is 8, what is the value of x?