I have the following system of congruences
$$\begin{align} x &= a \pmod m \\ x &= b \pmod n. \end{align}$$
I need to prove that this system has unique solution mod $mn/d$ where $d = \gcd(m,n)$ provided that
$$d \mid (b - a).$$
From the first system I have x - a = mq for $q$ $\in Z$ Hence we get $x = mq + a$ . Now put that into the second system and we will get $mq + a = b\pmod n$. $mq = b - a \pmod n$, so this turns into a linear congruence and one can easily prove that solution exist iff $(m,n) | (b - a)$.
Now to get the solution for $q$ we can easily use linear diophantine result for 2 variables so call $q = x$. This mean that the solution is given by x = $x_0$ + n/(m,n)*k for k $\in Z$ So we get x = $x_0$ (mod $n/(m,n)$). I don't get mod $mn/d$.
I know how to proof the rest I just need this little part of someone could clarify that would be great.
I think your renaming $q$ to $x$ is the source of the confusion. You're right that you get a unique solution for $q$ modulo $n/(m,n)$. But $x=mq+a$, and so $x$ is determined uniquely modulo $m\cdot n/(m,n)$—exactly as you want.