The teacher will be very surprised to see your correct solution 😉
-7*x + 3 = 30 - 2*x
-7*x+3 = 30-2*x
x = 27 / (-5)
sum
-27/5
=
product
x1 = -27/5
x1 = -5.4