
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

Křemílek and Vochomůrka found a chest with a treasure. Each of them took silver coins in one pocket and gold coins in the other pocket. Křemílek had a hole in his right pocket and lost half of his gold coins on the way. Vochomůrka had a hole in his left pocket and lost half of his silver coins on the way home. At home, Vochomůrka gave one-third of his gold coins to Křemílek, and Křemílek gave one-quarter of his silver coins to Vochomůrka. Afterwards, each of them had exactly 12 gold coins and 18 silver coins. How many gold coins and how many silver coins did each of them take from the found treasure?

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