\(\left(x-5\right)^4=\left(x-5\right)^6\)
\(\Rightarrow\left(x-5\right)^6-\left(x-5\right)^4=0\)
\(\Rightarrow\left(x-5\right)^4\left[\left(x-5\right)^2-1\right]=0\)
\(\Rightarrow\left[{}\begin{matrix}\left(x-5\right)^4=0\\\left(x-5\right)^2=1\end{matrix}\right.\)
\(\Rightarrow\left[{}\begin{matrix}x-5=0\\\left[{}\begin{matrix}x-5=1\\x-5=-1\end{matrix}\right.\end{matrix}\right.\)
\(\Rightarrow\left[{}\begin{matrix}x=5\\x=6\end{matrix}\right.\)