Problem statement:
Let $S$ be the set of all positive integers $n$ such that $n^2$ is a multiple of both $24$ and $108$. Which of the following integers are divisors of every integer $n$ in $S$?
The choices are: $12, 24, 36, 72$. The solution is $12$ and $36$.
My solution was $S = \{36, 36* 6^3, 36*6^5, ...\}$
I can't figure out this problem. I started by finding the $\text{lcm}(24,108)$ and solved for $n$. I got some of the numbers in the set $S$, but not all of them, and I don't see what I'm missing.
Update: added the choices and what my results