use equations like this...
xy = 18
x + y = -25
solve for y in one of the equations and then substitute.
y = 18/x
x + (18/x) = -25
x2 + 18 = -25x
x2 + 25x + 18 = 0
use quadratic equation to find the answer...
x = -24.25727602 and -0.742023985
25
-25
4 x 25
-25
119
-27
54
18 and 18
20
703
45 and 18
7x7=49