If we know that the square + (m-1) x + (m-2) of the parabola y = x intersects with the x-axis and two points a and B, and ab = 2, then what is m?

If we know that the square + (m-1) x + (m-2) of the parabola y = x intersects with the x-axis and two points a and B, and ab = 2, then what is m?

Let a (x1,0) B (x2,0) then
|x1-x2|=2
So (x1 + x2) ^ - 4x1x2 = 4.1
Let x ^ 2 + (m-1) x + (m-2) = 0
x1+x2=1-m
x1x2=m-2
Substituting into Formula 1, the solution is obtained
M = 5 or M = 1