\(\left(x+8\right)^2-2\left(x+8\right)\left(x-2\right)+\left(x-2\right)^2\\ =\left(x+8+x-2\right)^2\\ =\left(2x+6\right)^2\)
\(\left(x+8\right)^2-2\left(x+8\right)\left(x-2\right)+x-2=\left(x+8\right)^2-2\left(x+8\right)\left(x-2\right)+\left(x-2\right)^2-x^2+4x-4+x-2\)
\(=\left(x+8-x+2\right)^2-x^2+5x-6=10^2-x^2+5x-6=-x^2+5x+94\)