I know that $$(577+408\sqrt{2})(577-408\sqrt{2})=577^2-2\cdot408^2=1$$ and I should use this fact to solve find $n$: $$x=\frac{\log n}{\log(577+408\sqrt{2}}$$ where $x$ is the greatest root of the equation $$(577+408\sqrt{2})^x+(577-408\sqrt{2})^x=\frac{226}{15}$$
I tried to apply $\log$ on both sides of the equation above, but I don't know how to proceed due to the fact that there's no property about $\log(A+B)$.
I also applied $\log$ in the first identity, but I got $$\log(577+408\sqrt{2})^x+\log(577-408\sqrt{2})^x=0$$ and not the equation I should solve.