
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
Our school offers 38 different extracurricular activities, among which the ratio of the number of people in the table tennis team to the basketball team is 7:3. If 8 people are transferred from the table tennis team to the basketball team, the ratio of the number of people in the two teams becomes 3:2. How many people are there in the table tennis team and the basketball team respectively?

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