The teacher will be very surprised to see your correct solution 😉
22 = 4*(8 - 2*x) - 10*x
22 = 4*(8-2*x)-10*x
22 = 4*8-4*2*x-10*x
22 = 32 - 18*x
x = 10 / (18)
x1 = 5/9
sum
5/9
=
product
x1 = 0.555555555555556