Ta có:
\(\overline{X}=\frac{5.2+6.5+9.n+10.1}{2+5+n+1}=6,8\)
\(\Rightarrow\overline{X}=\frac{10+30+9n+10}{8+n}=6,8\)
\(\Rightarrow\overline{X}=\frac{50+9n}{8+n}=6,8\)
\(\Rightarrow6,8.\left(8+n\right)=50+9n\)
\(\Rightarrow54,4+6,8n=50+9n\)
\(\Rightarrow54,4-50=9n-6,8n\)
\(\Rightarrow4,4=2,2n\)
\(\Rightarrow n=2\)