Step-by-step explanation:
log <base a> b = x
means
a^x = b
So
3^2 = x^2+7x+21
x^2 + 7x + 21 - 9 = 0
x^2 + 7x + 12 = 0
(x+3)(x+4)
x = -3 or -4