$\text{Đáp án + Giải thích các bước giải:}$
`x^{2}-5x+6=0`
`<=>(x^{2}-2x)-(3x-6)=0`
`<=>x(x-2)-3(x-2)=0`
`<=>(x-2)(x-3)=0`
`<=>` \(\left[ \begin{array}{l}x-2=0\\x-3=0\end{array} \right.\)
`<=>` \(\left[ \begin{array}{l}x=2\\x=3\end{array} \right.\)
`\text{Vậy}` `S={2;3}`