The teacher will be very surprised to see your correct solution 😉
2 2 2 - 5*x - 2*x + 6 = 3*x - 3*x + 9 + -2 - 2*x
-5*x^2-2*x+6 = 3*x-3*x^2+9-(2+2*x^2)
-5*x^2-2*x+6 = 3*x-3*x^2+9-2-2*x-2
6 - 5*x^2 - 2*x = 7 - 5*x^2 + 3*x
x = 1 - 5*x^2 / ((-5*x - 5*x^2)/x)
sum
-1/5
=
-1/5
product
-1/5
=
-1/5
-1/5