Answer: \(x=2\) or \(x=3\).
How to solve
\[ x^2-5x+6=0 \]
To factor, find two numbers that multiply to \(6\) and add to \(-5\). Those numbers are \(-2\) and \(-3\):
\[ x^2-5x+6=(x-2)(x-3) \]
So:
\[ (x-2)(x-3)=0 \]
A product is zero when one factor is zero:
\[ x-2=0 \quad\text{or}\quad x-3=0 \]
Therefore:
\[ x=2 \quad\text{or}\quad x=3 \]
Check
For \(x=2\):
\[ 2^2-5\cdot2+6=4-10+6=0 \]
For \(x=3\):
\[ 3^2-5\cdot3+6=9-15+6=0 \]
Both values work.
Key idea: For a quadratic \(x^2+bx+c=0\), try to write it as \((x+p)(x+q)=0\), where \(p+q=b\) and \(pq=c\). Then set each factor equal to zero.
