xy = -112
x + y = 3
x = 3-y
y(3-y) = -112
3y - y + 112 =0
-y + 3y + 112 = 0, which has no simple factorisation. Use the quadratic formula:
x = [-b +- sqrt(b - 4ac)]/2a
x = [-3 +- sqrt(457)]/-2
Case one:
x = 3/2 + sqrt(457)/2
x ~ 12.1888
Case two:
x = 3/2 - sqrt(457)
x ~ -9.1888
So x and y = 12.188 and -9.1888.
22
The numbers are 2 and -4
97
50
-27
120
The numbers that add up to negative 6 and multiply to negative 27 are -3 and 9.
The factor pairs of 123 are (123,1)(41,3) Even considering their negative counterparts, nothing adds up to -24
107
-16
6*1
24 and 5