Given that the equation x2 + IX + 6 = 5x + 2I has real roots, try to find two roots of this equation

Given that the equation x2 + IX + 6 = 5x + 2I has real roots, try to find two roots of this equation

Let the root of a real number be x, then by comparing the real part with the imaginary part, we get the following result:
The real part X ^ 2 + 6 = 5x,
Imaginary part X = 2
So the real root is x = 2
The equation is: x ^ 2 + X (- 5 + I) + 6-2i = 0
According to the relationship between root and coefficient, the other root is (6-2i) / 2 = 3-i