Do the rules of algebra apply when you’re working with proportionalities?
For example, let $P$ be pressure, $\rho$ be density, and $m$ be mass. Given that $$P \propto \rho \quad\text{and}\quad \rho \propto m,$$ it would be logical to conclude that $$P \propto \rho \propto m$$ and $$P \propto m.$$
However, if I isolate $\rho$ on one side of the proportionality, I would, logically, get $$Pm \propto \rho,$$ since that is the only way both proportionalities—$P \propto \rho$ and $m \propto \rho$ are expressed. Clearly, this does not seem to follow much algebraic sense. How about if I wrote the proportionalities as equalities? $$P=\alpha\rho=\beta m,$$ where $\alpha$ and $\beta$ are proportionality constants. From here, how would you use algebra to obtain $$Pm=\gamma \rho$$ (whatever $\gamma$ is equal to in terms of $\alpha$ and $\beta$)?