a: =>(x-2022)(x+1)=0
=>x=2022 hoặc x=-1
b: =>(x-3)(x-5)=0
=>x=3 hoặc x=5
`x(x-2022)-(2022-x)=0`
`<=> x^2 - 2022x - 2022 +x =0`
`<=> x^2 +x - 2022x -2022 =0`
`<=> x(x+1)-2022(x+1) =0`
`<=> (x-2022)(x+1)=0`
`<=>`\(\left[{}\begin{matrix}x-2022=0\\x+1=0\end{matrix}\right.\Leftrightarrow\left[{}\begin{matrix}x=2022\\x=-1\end{matrix}\right.\)
Vậy `S={2022;-1}`
`x^2 -8x+15 =0`
`<=> x^2 -3x -5x +15=0`
`<=> x(x-3) - 5(x-3) =0`
`<=>(x-3)(x-5)=0`
`<=>`\(\left[{}\begin{matrix}x=3\\x=5\end{matrix}\right.\)
Vậy `S={3;5}`