The teacher will be very surprised to see your correct solution 😉
5 + x - 2 + 3*(x - 3) = 3*(4 - x) - 3
5--x-2+3*(x-3) = 3*(4-x)-3
5--x-2+3*x-3*3 = 3*(4-x)-3
5--x-2+3*x-3*3 = 3*4-3*x-3
-6 + 4*x = 3*4-3*x-3
-6 + 4*x = 9 - 3*x
x = 15 / (7)
sum
15/7
=
15/7
product
15/7
=
15/7
15/7