
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
Grandfather raises geese, pigs, goats, and chickens - a total of 40 animals. For every goat, there are 3 geese. If there were 8 fewer chickens, there would be as many chickens as there are geese and pigs combined. If grandfather exchanged a quarter of the geese for chickens at a rate of 3 chickens for 1 goose, he would have a total of 46 animals.

How many of each type of animal does grandfather have?

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