To alternate positions, girls or a boy must occupy the first position on the line. The line will be GBGBGBGBGB, or BGBGBGBGBG where G represent girls, while B represent boys.
Below is the number of ways of selecting occupants of 1st to 9th positions for the two lines.
Thus, the number of ways that the participants can form a line is
Since the two possible lines have possible ways of selecting a participant at any given positions, the total number of possible ways of forming a line is
Comments