I know that any abelian group can be written as a direct product of sylow subgroups and any sylow subgroup can be written as a product of cyclic groups.
Let $G$ and $G^{\prime}$ be two abelian groups of order m and n. and $m=p_1^{n_1} \dots p_k^{n_k}$ and $n=q_1^{n_1} \dots q_l^{n_l}.$ Then $G = S_1 \times \dots \times S_k,$ where $|S_i|=p_i^{n_i}$ and since any Sylow subgroups can written as a direct product of cyclic groups.
It can be written as $S_i = A_{i1} \times \dots A_{ik},$ where $A_{ij} = \langle a_{ij} \rangle,$ and $|A_{ij}| = p_i^{a_j}$ and $a_1 + \dots + a_k = n_i$ simlarly holds for $G^{\prime}.$
what can i do next ? I am struck with it ?