You can put this solution on YOUR website! Let A be the event "the family has children of only one sex".
Let B be the event "the family has children of both sexes".
It's clear that
There are 16 possible combinations of sexes from MMMM, MMMF, through, FFFM, FFFF.
Only two fall into the A category {MMMM,FFFF} so,
So then,