Let the digit in the units place = x
Let the digit in the tens place = y
∴ The number = 10y + x
By interchanging the digits the number becomes 10x + y
By problem(10x + y) - (10y + x) = 18
9x - 9y = 18
9(x-y) = 18
y = x - 2
digit in the tens place = x - 2
digit in the units place = x
product of the digits =(x - 2)x
By problem x2 -2x = 8
x2 - 2x - 8 = 0
x2 - x + 2x - 8 = 0
x(x - ) + 2(x-) = 0
(x - ) (x + 2) = 0
x - = 0 (or) x + 2 = 0
x = (or) x = -2
x = [ ∵X can't be negative]
∴ The number is 24.