I was wondering if my proof is right and if there are better methods of solving this proof?
My proof:
Assume $x \equiv_k y$ and $y \equiv_k z$ is true. This means that :
\begin{align}x &= y + kq,&&\text{where }\;q ∈\Bbb Z,\tag{1} \\ y &= z + ka,&& \text{where } a ∈ \Bbb Z. \tag{2} \end{align}
By substitution of $(2)$ into $(1)$ we get:
\begin{align} x &= z + ka + kq \\ &= z + k(a + q),&&\qquad \text{where }\: a ∈\Bbb Z \text{ and } q ∈ \Bbb Z \end{align}
This proves $x \equiv_k z$ is true. $\blacksquare$