In the problem (below) we are asked to show: if $a \pmod {st} = b \pmod {st}$, then $a \pmod s = b \pmod s$ and $a \pmod t = b \pmod t$. I did this part of the question. Then we are asked, what makes the converse true? The answer is, that $\gcd (s, t) = 1$. How can this be shown?
Here is the actual problem (from Gallian, Contemporary Abstract Algebra 6E):
Let $a$, $b$, $s$, and $t$ be integers. If $a \pmod {st} = b \pmod {st}$, show that $a \pmod s = b \pmod s$ and $a \pmod t = b \pmod t$. What condition on $s$ and $t$ is needed to make the converse true?
My question is a little bit different than this one: x≡a (mod m) and x≡a(mod n) implies x≡a (mod mn) (and a few others like it). Usually in similar questions it is a supposition that $m$ and $n$ (in my case the $s$ and the $t$) are relatively prime. In my question, I am asking, how can we show that this is the case?
Here is my attempt at showing the converse (I don't think it is correct):
The converse would be that if $a \equiv b \pmod s$ and $a \equiv b \pmod t$, then $a \equiv b \pmod {st}$. Suppose that $a \equiv b \pmod s$ and $a \equiv b \pmod t$, then $s$ divides $a − b$ and $t$ divides $a − b$. There exist integers $m$ and $n$ such that $a − b = ms$ and $a − b = nt$. In order for $st$ to appear as a factor of $a − b$, $s$ and $t$ must be relatively prime. Or in other words, $\gcd (s, t) = 1$. Consider: \begin{align*} a - b & = ms \\ & = (nt)s \\ & = n(ts) \end{align*} Above, if $s$ divided $t$ or $t$ divided $s$, then they would not appear as factors alongside one another. We would not have $st$ as a factor.
EDIT:
My question was closed due to being similar to this question: $ d_1,d_2\mid n\iff {\rm lcm}(d_1,d_2)\mid n\,\ $ [LCM Universal Property or Definition]. My question is slightly different. This question is more open-ended. This question is seeking any satisfactory proof as an answer. In my question, I am asking about a specific condition: $\gcd (s, t) = 1$, and why it forces the result: $a \pmod {st} = b \pmod {st}$.