This is a combination and counting problem where you use combinations to find the number of possible men, women and children and multiply the three numbers together. Given that Miles and Margaret are chosen, that means C(6,2)*C(1,1)*C(6,2)
Note here that there is only one female role available here and Margaret has taken it.
Hope that helps!