The teacher will be very surprised to see your correct solution 😉
18 - x - 7*(2*x - 4) = 5*x + 20
(18-x)-7*(2*x-4) = 5*x+20
18-x-7*2*x+7*4 = 5*x+20
46 - 15*x = 5*x+20
x = -26 / (-20)
13 x1 = -- 10
x1 = 13/10
sum
13 -- 10
=
product
13/10
x1 = 1.3