Warning, shocklightnin. Icystrike may have misunderstood your question and given a wrong answer!
I would interpret your question, since you specifically stated that "5" and "x" were "subscripts" (I would say "bases") as
"If
[tex]\frac{log_5(a)}{2}= log_x(a)[/tex]
for some a, what is x?"
Then icystrike is answering a completely different question:
[tex]\frac{log(5)}{log(2)}= log(x)[/tex]
which is, in a sense, the "reverse" of the original question!
If my interpretion is correct, since [itex]log_x(a)= log(a)/log(x)[/itex] and [itex]log_5(a)= log(a)/log(5)[/itex], where "log" on the right of each equation can be to any base, it follows that
[tex]\frac{log(a)}{log(5)}= 2\frac{log(a)}{log(x)}[/tex]
Now the "log(a)" terms cancel out and we have
[tex]\frac{1}{log(5)}= \frac{2}{log(x)}[/tex]
That is the equation you want to solve.