If $A=\{z\in \mathbb{C}: z^{18}=1\}$ and $B=\{z\in \mathbb{C}: z^{48}=1\}$ find the number of distinct elements on $$C=\{x\times w: x\in A\ \text{and}\ \ w\in B\}.$$
Source: list of problems for the preparation for math contests
Hints and answers are welcomed. Sorry if this is a duplicate.
Hint: If $c \in C$, then $c^{\operatorname{lcm}(18,48)}=1$.
Spoiler: