The teacher will be very surprised to see your correct solution 😉
x + 3 x ----- = 6 + - 5 2
(x+3)/5 = 6+(x/2)
x/5+3/5 = 6+(x/2)
x/5+3/5 = 6+x/2
x = 27/5 / (-3/10)
x1 = -18
sum
-18
=
product
x1 = -18.0