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