
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 and B went to a discount store to buy goods, where the price per item was only 8 yuan for type A and 9 yuan for type B. It is known that both A and B bought the same number of items, and together they spent a total of 172 yuan. How many items of type A and type B did A and B buy in total?

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