
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

Basket A and basket B contain apples and pears, with a total of 82 fruits. The difference in the total number of fruits between the two baskets is less than 10. In basket A, apples account for $\frac{2}{5}$, and in basket B, pears account for $\frac{4}{7}$. How many pears are there in basket A? How many apples are there in basket B?

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