the sum of two numbers is 42. their product is 185. what are the two numbers

1 answer

let the numbers be x and y

x+y = 42 ---> y = 42-x
xy = 185 --->x(42-x) = 185
42x - x^2 - 185 = 0
x^2 - 42x + 185 = 0
(x-37)(x - 5) 0
x = 37 or x = 5
then y = 42-37 or y = 42-5
y = 5 or y = 37
(symmetric solution)

the two numbers are 5 and 37