We are given six observations 7, 10, 11, 15, a, b with mean 10 and variance 320.
From the mean: 67+10+11+15+a+b=10, so 43+a+b=60, giving a+b=17.
From the variance: 6∑xi2−xˉ2=320, so
649+100+121+225+a2+b2=100+320=3320.
495+a2+b2=640,hence a2+b2=145.
Now, (a+b)2=a2+2ab+b2, so 289=145+2ab, giving ab=72.
Therefore, (a−b)2=(a+b)2−4ab=289−288=1, so ∣a−b∣=1.