Let $A$ be a finite set, and $B$ a subset of $A$. Let $G$ be the subset of $S_A$ consisting of all the permutations $f$ of $A$ such that $f(x) = x$ for every $ x \in B$. Prove that $G$ is a subgroup of $S_A$.
I am thinking of starting off by showing that $G$ is closed with respect to the inverse, but I am unsure if this is the correct way to go about it.
Any help?
Show that $ab\in G$ for all $a,b$ in G. That is enough.