=>x^2-10x+25=x^2-9
=>-10x=-9-25=-34
=>x=17/5
\(\left(x-3\right)\left(x+3\right)=\left(x-5\right)^2\)
\(\Leftrightarrow x^2-3^2=x^2-10x+25\)
\(\Leftrightarrow x^2-x^2+10x=25+9\)
\(\Leftrightarrow10x=34\)
\(\Leftrightarrow x=\dfrac{34}{10}\)
\(\Leftrightarrow x=\dfrac{17}{5}\)