Answer:
18 and 9
OR
-18 and -9
Step-by-step explanation:
Let:
first number = x
second number = y
According to given conditions:
x - y = 9 ---------- eq1
x * y = 162 ------- eq2
From eq1:
x = 9 + y
Put it in eq2:
(9+ y)*y = 162
9y + y^2 - 162 = 0
OR
y^2 + 9y -162 = 0
By factorizing we get:
y^2 -9y + 18y - 162 = 0
Taking common:
y(y - 9) + 18(y - 9) = 0
(y - 9)(y + 18) = 0
So:
y = -18 and y = 9
ignoring negative integer
Putting values of y in eq1:
x - 9 = 9
x = 9 + 9
x = 18
So the two numbers are:
18 and 9
OR
-18 and -9
i hope it will help you!