Suppose $x$ is proportional to $y$ and $x$ is proportional to $z$. Then we can write, \begin{align*} x &= k_{1}y \end{align*}
The constant $k_{1}$ is going to depend on $z$. So, $$k_{1} = f(z)$$ Since $x$ is proportional to $z$, $$k_{1} = f(z) = cz$$, for some constant $c$. So we have, $$x = czy $$ $$x \propto zy $$
But, since $x$ is proportional to $z$ we can write, $$x = k_{2}z$$ So multiplying the two equations we have,
$$x^{2} = k_{1}k_{2}yz$$ $$\frac{x^{2}}{yz} = k_{1}k_{2}$$ $$x^{2} \propto yz$$
These are two conflicting results. So what am I missing here? I have looked at this thread: How does one combine proportionality? and while it does give some insight, doesn't fully answer my question.
Edit: Ok, I think I understand it now. In the last part we had $x^2 = k_1k_2yz$, since we are considering $y$ and $z$ as things that can change, we must also consider the constants. We know that if $z$ changes, $k_1$ changes, and if $y$ changes, $k_2$ changes. That is, $k_1 = c_1z$ and $k_2 = c_2y$. So we have \begin{align} x^2 &= c_1c_2y^2z^2 \\ x^2 &\propto (yz)^2 \\ \end{align}
From this can I write $$x \propto (yz)$$ ?