solve the equation for x.

3^2x - 3^x+2 +8 =0

Ps. The topic is logarithmic and exponential functions

maybe you mean

3^(2x) - 3^(x+2) + 8 = 0

let z = 3^x

z^2 - 9 z + 8 = 0

(z-8)(z-1) = 0

z = 1 or z = 8

x = 0 or x = 2