
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
Given that a sample of size $n$ was selected from 120 young people, 80 middle-aged people, and 60 elderly people in a community using stratified sampling, and among the sampled population, 3 elderly people were selected, calculate the sample size $n$.

Present the answer in LaTex format: \boxed{Your answer}
user