x + y = -1 and x(y) =-42, solve for y in the first equation by subtracting x from both sides. Substitue
this for y in the second equation.
y = - x - 1
and, x (- x - 1) = -42
-x2 - x + 42 = 0 multiply by -1
x 2 + x - 42 = 0
(x+7)(x -6) = 0
x = - 7 or x = 6
y = 6 or y = - 7