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