A sample is selected with a specific number of participants from each subgroup to ensure representativeness.