The 6 works. The left hand side is log(64) The right side is 2 log(8) But the law of logarithms states that 2log(8) = log(64) (remember log(a^b)=b*log(a), with a=8 and b=2) It is the -2 that does not work. Log(0) is UNDEFINED. log(x) is only defined for positive x. Substituting x=-2 does not yield a true equation, so x=-2 is not a solution.
once you find "x" simply plug it in. if it ends up being true (>12, >8, etc) then your solution is correct. if it's incorrect, it's time to check it once more, and then start over again.