Let $x,y,z$ be positive integers such that \begin{align*}x &= \text{lcm}(\gcd(x,y),\gcd(z,x))\\ y &= \text{lcm}(\gcd(x,y),\gcd(y,z))\\ z&= \text{lcm}(\gcd(x,z),\gcd(y,z)).\end{align*} Prove that $\text{lcm}(x,y) = \text{lcm}(y,z) = \text{lcm}(x,z)= \text{lcm}(x,y,z)$.
Let the decomposition into primes of each of the variables be $x = \prod_{i}p_i^{\alpha_i},y = \prod_{i}p_i^{\beta_i},z = \prod_{i}p_i^{\gamma_i}$. Then $$x = \text{lcm}\left(\prod_{i}p_i^{\min(\alpha_i,\beta_i)},\prod_{i}p_i^{\min(\alpha_i,\gamma_i)}\right) = \prod_{i}p_i^{\max(\min(\alpha_i,\beta_i),\min(\alpha_i,\gamma_i))}$$ and we similarly obtain $y = \prod_{i}p_i^{\max(\min(\alpha_i,\beta_i),\min(\beta_i,\gamma_i))}$ and $z = \prod_{i}p_i^{\max(\min(\alpha_i,\gamma_i),\min(\beta_i,\gamma_i))}$. Therefore, $\text{lcm}(x,y) = \prod_{i}p_i^{\max(\max(\min(\alpha_i,\beta_i),\min(\alpha_i,\gamma_i)),\max(\min(\alpha_i,\beta_i),\min(\beta_i,\gamma_i)))}$ and similarly for the others.
Now we also must have $\alpha_i = \max(\min(\alpha_i,\beta_i),\min(\alpha_i,\gamma_i)),\beta_i = \max(\min(\alpha_i,\beta_i),\min(\beta_i,\gamma_i))$ and $\gamma_i = \max(\min(\alpha_i,\gamma_i),\min(\beta_i,\gamma_i))$. But I didn't see how to use these as conditions.