(i) When the order of the birth of a girl or a boy is considered, the sample space is given by S = {GG, GB, BG, BB}

(ii) Since the maximum number of children in each family is 2, a family can either have 2 girls or 1 girl or no girl. Hence, the required sample space is S = {0, 1, 2}