From Hungerford's "Algebra":

What type of tools does one have to tackle a problem like this? I seem at a loss at how to show a group is free at all. One can consider each group as the homomorphic image of a free group, but how does one work in the other direction?
The group $F/H$ is (isomorphic to) the free group on $X \setminus Y$, since it has the correct universal property: If $G$ is a group with underlying set $|G|$, then there are natural bijections $$\hom(F/H,G) \cong \{\phi \in \hom(F,G) : H \subseteq \ker(\phi)\}$$ $$= \{\phi \in \hom(F,G) : Y \subseteq \ker(\phi)\} \cong \{f \in \hom(X,|G|) : f|_Y = 1_G\}$$ $$ \cong \hom(X \setminus Y,|G|).$$