
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
Ali Baba went to a cave where there are gold and diamonds. He had with him one large bag. It is known that a full bag of gold weighs 200 kg, and if the bag is filled only with diamonds, it weighs 40 kg (the empty bag weighs nothing). A kilogram of gold costs 20 dinars, and a kilogram of diamonds costs 60 dinars. What is the maximum amount of money Ali Baba can earn if he can carry no more than 100 kg in this bag? Provide justification for your answer.

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