Let $(M, d)$ be a metric space, $x, z \in M$ and $a > 0$. Prove that the set $A = \{y \in M : d(x, y) + d(y, z) < a\}$ is open.
I'm having a fair bit of trouble trying to find how to use triangle inequality here. Specifically, if I let $r = a - d(x, y) - d(y, z)$ I can't cancel enough terms to get $d(q, y) < a$. For example \begin{align*} d(q, y) \leq d(x, q) + d(x, y) \leq d(x, y) + d(y, q) + d(x, z) + d(z, y) < a + d(x, z) \end{align*} What am I missing, or is my approach just wrong? I've considered letting $r = a - \min\{d(y, x), d(y,z)\}$ and I believe that this works as far as the inequality is concerned but I'm not sure that it actually proves the statement.