This is a clarification from Rosen's discrete mathematics book. It says that 'by the Chinese Remainder theorem' the following is true: if $x\equiv y \mod{p}$ and $x\equiv y \mod{q}$, then if p and q are relatively prime: $x\equiv y \mod{pq}$.
I know the Chinese Remainder theorem allows us to multiply relatively prime moduli together as long as we create a solution x in a certain form, but I don't see how this conclusion would follow.
I thought of doing it this way (may be wrong):
$x\equiv y \mod{q}$ is the same as $x-y\equiv 0 \mod{q}$
$x\equiv y \mod{p}$ is the same as $x-y\equiv 0 \mod{p}$
So we can write these equations as $x-y = k_1p = k_2q$ for some integers $k_1$ and $k_2$.
Then I multiply the equations to get $(x-y)^2 = k_1k_2pq$, and converting back to a congruence: $(x-y)^2\equiv 0 \mod{pq}$.
And then we can reduce it down to $(x-y)\equiv 0 \mod{pq}$ which is $x\equiv y \mod{pq}$
I am unsure if the above is a correct way to get to this conclusion, but even if it is correct I don't see how the chinese remainder theorem plays a role.
Thanks for the help!