\(x\left(x-2022\right)-2x+4044=0\\ \Rightarrow x\left(x-2022\right)-2\left(x-2022\right)=0\\ \Rightarrow\left(x-2022\right)\left(x-2\right)=0\\ \Rightarrow\left[{}\begin{matrix}x=2022\\x=2\end{matrix}\right.\)
x(x-2022)-2x+4044=0
\(x^2-2022x-2x+4044=0\)
\(x^2-2x-2022x+4044=0\)
\(\left(x^2-2x\right)-\left(2022x-4044\right)=0\)
\(x\left(x-2\right)-2022\left(x-2\right)=0\)
\(\left(x-2\right)\left(x-2022\right)=0\)
\(x-2=0\)
\(x-2022=0\)
<=> \(x=\left\{2;2022\right\}\)