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