12. From 30 people with distinct ages, select two groups, the first group consisting of 12 people, and the second group consisting of 15 people, such that the oldest person in the first group is younger than the youngest person in the second group. The number of ways to select these groups is. .
Problem 718
Official solution
12. 4060
Assume the ages of these 30 people, in ascending order, are . Let the first group of 12 people be , and the second group of 15 people be , which are the ages of the selected two groups that meet the requirements. Thus, .
In this way, this selection method corresponds one-to-one with . The latter is a 27-element subset of .
Therefore, the number of selection methods is .