The product of two integers is -40. If the same two integers are added, their sum is -3. Find the larger of the integers.
I did this:
x*y = -40...Equation A
x + y = -3..Equation B
I solved Equation B for y and got y = -x - 3.
I plugged the value for y into Equation A and solved for x.
x(-x - 3) = -3
-x^2 - 3x = -3
I moved everything to the right side.
0 = x^2 + 3x - 40
My final answer is 5 but the math book tells me that the correct answer is -8. Can you explain who is right and why?