a set s = { x , - 8 , - 7 , - 6 , 6 , 8 , 9 , y } with elements arranged in increasing order . if the median and the mean of the set are the same , what is the value of | x | - | y | ?
n0 = 8.0
n1 = 7.0
n2 = 6.0
n3 = 6.0
n4 = 8.0
n5 = 9.0
t0 = n0 + n5
t1 = n2 + t0
t2 = t1 - n2
t3 = t2 - n1
answer = t3 - n0
print(answer)