Change to base 10 and note the cancellations.
\(\displaystyle log_{5}(8^{x-2})\cdot log_{2}(25^{x-1})=2x+6\)
Change to base 10:
\(\displaystyle \frac{log(8^{x-2})}{log(5)}\cdot \frac{log(25^{x-1})}{log(2)}=2x+6\)
\(\displaystyle =\frac{3(x-2)\rlap{/////}log(2)}{\rlap{/////}log(5)}\cdot \frac{2(x-1)\rlap{/////}log(5)}{\rlap{/////}log(2)}=2x+6\)
See, the log(5) and log(2) cancel.
We get:
\(\displaystyle 3(x-2)\cdot 2(x-1)=2x+6\)
Now, solve for x.