The teacher will be very surprised to see your correct solution 😉
4*x + 12 = 3*x + 8
4*x+12 = 3*x+8
x1 = -4
sum
-4
=
product
x1 = -4.0