The more elegant way to solve this equation was given by lab bhattacharjee, but I'll simply elaborate on how to solve it using your method, which was still correct.
Hint: We have that $$a^2 - ab -2b^2 = 0 \iff b = \frac{a}{2}, \text{or }b= -a.$$
You now have a system of two equations, $\log_3 a = \log_2 b$ and from this you can see that neither $a$ or $b$ can be negative. So you need to rule out $b=-a$ as a solution. Instead, we take $b= a/2$. Substituting this into the logarithmic equation gives $$\log_3 a = \log_2 \frac{a}{2} \implies \large a = 2^{\frac{\ln 3}{\ln 3/2}}$$
Then $$x = \log_3 a = \frac{\ln 3}{\ln 3/2} \log_3 2 = \frac{\ln 2}{\ln 3/2} = \frac{\ln 2}{\ln 3 - \ln 2}$$