The product of x and y equals -340 and the sum of x and y equals -3
So we have
xy = -340 and
x + y = -3
We can transform the second equation to
y = -3 - x
And putting this into the first equation, we have
x(-3 -x) = -340 simplify
-3x - x^2 = -340 multiply through by -1
x^2 + 3x = 340 subtract 340 from each side
x^2 + 3x - 340 = 0 facror, if possible
(x +20)(x - 17) = 0 set each factor to 0
So
x = -20 and x = 17
And using y = -3 - x
When x = -20, y = -3- (-20) = 17
When x = 17 y = -3 - 17 = -20
So the solutions are (-20, 17) and (17, -20)
