✔ 最佳答案
Set this up as a system of two equations - that is:
x + y = 24
xy = -180
The easiest way to solve is then via substitution.
y = 24 - x
Which means...
x(24 - x) = -180
Simplify.
24x - x^2 = -180
Solve as a standard quadratic equation. I'll complete the square.
x^2 - 24x = 180
x^2 - 24x + 144 = 180 + 144
(x - 12)^2 = 324
(x - 12) = ±18
x = 30 or -6
This means that your answers are 30 and -6.