The teacher will be very surprised to see your correct solution 😉
-15 - 3*x = -7*x + 45
-15-3*x = -7*x+45
x = 60 / (4)
sum
15
=
product
x1 = 15
x1 = 15.0