ln(x+2) = ln(18) - ln(x+5)
ln(x+2) = ln(18/(x+5))
x + 2 = 18/(x+5)
(x+2)(x+5) = 18
x^2 + 7x + 10 = 18
x^2 + 7x - 8 = 0
(x + 8)(x - 1) = 0
x = -8, x = 1
But since we've got ln(x+2), we can't use x = -8 because that would mean ln(-6). We can't do ln on a negative number.
Answer: x = 1