The correct option is D (x−3)(x−2)
The given expression is
x2−5x+6
The product of first and last term is 6x2.
The middle term is -5x.
So, two terms whose product is 6x2 and sum is −5x will be
−3x and−2x
So, the expression can be written as
x2−3x−2x+6
= x(x−3)−2(x−3)
= (x−3)(x−2) [Taking (x-3) common]