As was stated in the comments you just need $\frac{1}{8}\sum_{i=1}\limits^8i^2$. (do you see why?)
If you don't want to add $8$ numbers you can use the formula $\sum\limits_{i=1}^ni^2=\frac{n(n+1)(2n+1)}{6}$.
When $n=8$ you get $\frac{1}{8}\frac{8\times9\times 17}{6}=\frac{3\times 17}{2}=25.5$