I would like to find an group isomorphism $f:\mathbb{Z}/17\mathbb{Z}\times \mathbb{Z}/561\mathbb{Z} \to \mathbb{Z}/51\mathbb{Z}\times \mathbb{Z}/187\mathbb{Z} $. By the fundamental theorem of a finite abelian group and the Chinese remainder theorem, we know that those groups are isomorphic, but I want to show it by constructing an isomorphism.
However, I don't know what the first step is. The only thing I know is that $f(0,0)=(0,0)$ since an isomorphism maps an identity element to an identity element.
Then I saw How to construct an isomorphism? and tried to mimic the way, like $f(x,y)=(x\mod{51},y\mod{187})$, but it is obviously not a surjection.
Now I am stuck here. Any help?