I need help on a mathematics question. I need an explanation.

Solve 2 log x = log 64.

x = 8
x = ±8
x = 32
x = 128
Why is it not B and rather A? I agree with 8, but I also think that -8 works.