The question essentially is: prove $D_6$ is isomorphic to $S_3 \times \mathbb{Z/2Z}$.
To me the linked question doesn't make sense because it seems more like trial and error, by finding 2 Normal subgroups $H$ and $K$ of $D_6$ such that $D_6 = H \times K$, and then using the theorem that IDP is isomorphic to EDP. But how in the first place were $H$ and $K$ contructed?
So I have the following questions:
a) $S_3 \times \Bbb Z/2 \Bbb Z$ stands for internal direct product or external direct product? (Apparently Gallian uses $\times$ for IDP only).
b) I am still not able to get how the isomorphism was established.
EDIT: Updated as per requests.
Thanks