Use change of base: $\log_2(3)\cdot\log_3(A)=\log_2(A)$. So:
Adding 1 to both sides: $[f(x)-1][f(1/x)-1]=1$.
Let $g(x)=f(x)-1$. Then $g(x)\cdot g(1/x)=1$.
For a polynomial $g(x)=x^n$ (monic monomial): $g(x)\cdot g(1/x)=x^n\cdot x^{-n}=1$ ✓ for all $x>0$.
So $f(x)-1=x^n$, i.e., $f(x)=x^n+1$.
Use $f(6)=37$: $6^n+1=37\Rightarrow6^n=36=6^2\Rightarrow n=2$.