so x times y=-180 or xy=-180 and x+y=-31
so
x+y=-31
subtract x or y from both sides it doesn't matter
so if subtract x
y=-x-31
subsitute this for y in xy=-180
(-x-31)x=-180
distribute
-x^2-31x=-180
add x^2 and 31x to both sides
x^2+31x-180=0
factor
(x-5)(x+36)=0
so if ab=0 then a and/or b=0 so
x-5=0
x=5
x+36=0
x=-36
the numbers are 5 and -36