How many elements of $S_5$ send the set $\{2,4\}$ into the set $\{2,4\} ?$
My attempt :let $\sigma\in S_5 $ be a permutation which send the set $\{2,4\}$ into the set $\{2,4\} $.Since $\sigma$ is injective so we have
$\sigma(2)=4$
$\sigma(4)=2$
$\sigma(4)=4$
$\sigma(2)=2$
$\implies$ there are $2$ elements of $S_5 $ which send the set $\{2,4\}$ into the set $\{2,4\} $
Okay, so we need a bijection from $\{1,2,3,4,5\}$ to itself. Also, importantly, we need to send $2$ and $4$ to $2$ and $4$, and we don't care about where $1,3,5$ are sent. You can send $2$ to $2$ or you can send $2$ to $4$, and in these cases you have to send $4$ to $4$ or $2$ respectively. There are $3!$ ways to arrange $1,3,5$, and hence $3!$ bijections which do the rearrangement. So, $2$ possibilities for where $2$ and $4$ go, and $3!$ possibilities for where $1,3,5$ go. In total that is $2\cdot 3!=12$ total bijections.