The teacher will be very surprised to see your correct solution 😉
-2*(6 + x) = 18 - 3*x
-2*(6+x) = 18-3*x
-2*6-2*x = 18-3*x
x1 = 30
sum
0 + 30
=
30
product
1*30
x1 = 30.0