\[A = \left\{ 1,\ 2,\ 3,\ 6,\ 9,\ 18 \right\};\ \ \ \]
\[B = \left\{ 1,\ 2,\ 3,\ 4,\ 6,\ 8,\ 12,\ 24 \right\};\]
\[A \cap B = \left\{ 1,\ 2,\ 3,\ 6 \right\};\ \]
\[A \cup B = \left\{ 1,\ 2,\ 3,\ 4,\ 6,\ 8,\ 9,\ 12,\ 18,\ 24 \right\}\text{.\ }\]