The teacher will be very surprised to see your correct solution 😉
-15 - 3*(x - 2) = 18 + x
-15-3*(x-2) = 18+x
-15-3*x+3*2 = 18+x
-9 - 3*x = 18+x
x = 27 / (-4)
x1 = -27/4
sum
-27/4
=
product
x1 = -6.75