The mean of $a,b,8,5,10$ is $6$ and the variance is $6.8$. find out value of $a$ and $b$
I tried something like this:
$$\bar{x}=6=\frac{a+b+8+5+10}{5}$$ $$7=a+b$$
Then i have put the value in the formula of variance
$$variance\ \sigma^2={\frac{{\Sigma x_i^2}}{n}-(\bar{x}^2)}$$ $$6.8={\frac{{a^2+b^2+189}}{5}-(36)}$$ $$25=a^2+b^2$$
I don't this my second equation is correct.If it correct then can anyone one guide me what do further?