
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 the number of legs in a group of cows, chickens, and goats is 18 more than twice the number of heads, and the total number of animals is 12, determine the total number of cows and goats.

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