Suppose you have two subgroups $H, K$ of $S_n$ that are given to be conjugate. How do you go about finding an element $\sigma$ of $S_n$ such that $\sigma H \sigma^{-1} = K$?
For two elements $\alpha, \beta$ of $S_n$, I know that they are conjugate if and only if they have the same cycle type, and I know how to find an element $\tau$ such that $\tau \alpha \tau^{-1} = \beta$. I would write the cycle decompositions for both $\alpha$ and $\beta$ in nondecreasing order of lengths of their cycles (including 1-cycles), and define $\tau$ to be the permutation that takes $a_i$ in $\alpha$ to the $b_i$ in $\beta$ in the corresponding position. But for a subgroup, how would this procedure work? Or does this not work? Is it easier to do if a generating set is known for $H$?
EDIT: I should mention that two specific subgroups of $S_8$ were given, a generating set is known for both $H$ and $K$, and I saw that someone came up with a $\sigma$ that worked, but there was no indication of how $\sigma$ was found, which is what I'm really after here.