Given $x,y$ are acute angles such that $$\sin y = 3 \cos(x+y)\sin x$$ Find the maximum value of $\tan y$.
Attempt: We have
$$\begin{aligned} 3(\cos x \cos y - \sin x \sin y) \sin x & = \sin y \\ 3 \cos x \sin x - 3 \sin^2 x \tan y & = \tan y \\ 3 \cos x \sin x & = \tan y(1 +3 \sin^2 x) \\ \tan y & = \dfrac{3 \sin x \cos x} {1+3 \sin^2 x} \end{aligned}$$
Now, how about the next step? Or maybe I did some mistakes?
By AM-GM $$\tan{y}=\frac{3\sin{x}\cos{x}}{1+3\sin^2x}=\frac{3\sin{x}\cos{x}}{\cos^2x+4\sin^2x}\leq\frac{3\sin{x}\cos{x}}{2\sqrt{\cos^2x\cdot4\sin^2x}}=\frac{3}{4}.$$ The equality occurs for $\cos{x}=2\sin{x},$ which says that we got a maximal value.