Do there exist $g,h: \mathbb{N} \rightarrow \mathbb{N}, y \in \mathbb{N}$, such that the following system holds? \begin{align*} (g \circ h \circ h )(y)= 2y \\ (h \circ g \circ h )(y)= 4y \\ (h \circ h \circ g )(y)= 6y \end{align*} I suspect the answer is no, because plugging $h$ into the second and third equation yields $h(2y)=4h(y)$ and $h(4y)=6h(y)$ respectively, and functional equations of the form $f(ax)=bf(x)$ only have the solution $f(x)=cx^{\log_{a}{b}}$, which cannot hold simultaneously for both equations.
Can someone check if this is accurate?
The below answer works for this case, but would it still work if the constants were different (such as $3y,5y,7y$)?