Let, the number be a1,a2,a3,...,a2n,b1,b2,b3,...,bn.
Given, the mean of the first 2n numbers is 6 and that of the remaining n numbers is 3, then by using the formula for combined mean, we get, the mean of the complete set as μ=2n+n2n×6+n×3=3n15n=5.
Also, the variance is defined as σ2=n∑(xi)2−(μ)2
4=3n∑(ai)2+∑(bi)2−(5)2
⇒3n∑(ai)2+∑(bi)2=29
⇒∑(ai)2+∑(bi)2=87n...(i)
Now, as per the given information, the distribution becomes
a1+1,a2+1,a3+1,...,a2n+1,b1−1,b2−1,...,bn−1
Thus, the new variance is
k=3n∑(ai+1)2+∑(bi−1)2−(3n(12n+2n)+(3n−n))2
⇒k=3n(∑(ai)2+2n+2∑ai)+(∑(bi)2+n−2∑bi)−(316)2
⇒k=3n∑(ai)2+∑(bi)2+3n+2∑ai−2∑bi−(316)2
On putting the given values and value from the equation (i),
⇒k=3n87n+3n+2(12n)−2(3n)−(316)2
⇒k=3108−(316)2
⇒9k=3(108)−(16)2
⇒9k=324−256=68.