\(\left(x-2\right)^2-5\left(x-2\right)=0\)
\(=>\left(x-2\right)\left(x-2-5\right)=0\)
\(=>\left(x-2\right)\left(x-7\right)=0\)
\(=>\left[{}\begin{matrix}x-2=0\\x-7=0\end{matrix}\right.=>\left[{}\begin{matrix}x=2\\x=7\end{matrix}\right.\)
\(=>x\in\left\{2;7\right\}\)
\(\left(x-2\right)^2-5\left(x-2\right)=0\)
=>\(\left(x-2\right)\left(x-2-5\right)=0\)
=>\(\left(x-2\right)\left(x-7\right)=0\)
=>\(\left[{}\begin{matrix}x-2=0\\x-7=0\end{matrix}\right.\Leftrightarrow\left[{}\begin{matrix}x=2\\x=7\end{matrix}\right.\)