
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
A factory produces three types of products A, B, and C in the quantity ratio of 3:5:7. Using stratified sampling, a sample of size $n$ is drawn, in which there are 18 products of type A. Find the sample size $n$.

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