Show that the function
$$ (\mathbb{Z}/ab\mathbb{Z})^\times \to (\mathbb{Z}/a\mathbb{Z})^\times \times (\mathbb{Z}/b\mathbb{Z})^\times $$
defined by $f([x]_{ab})=([x]_a,[x]_b)$ is a bijection where $\gcd(a,b)=1$.
I am trying to show this by proving injectivity and surjectivity, but am not sure if that is the best way. For injectivity, I am trying to show that $f([x]_{ab})=f([y]_{ab})\implies [x]_a=[y]_a, [x]_b=[y]_b$. Am I going about this in the right way. Any suggestions would be greatly appreciated.
Suppose $x\equiv y \bmod{a}$ and $x\equiv y \bmod{b}$.
Then $x-y=ta$, $x-y=sb$, hence $ta=sb$.
Since $gcd(a,b)=1$, what's the relation between $b$ and $t$?