
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
Two granaries, A and B, originally each stored whole bags of grain. If 90 bags are transferred from granary A to granary B, the number of bags in granary B will be twice the number of bags in granary A. If a certain number of bags are transferred from granary B to granary A, then the number of bags in granary A will be six times the number of bags in granary B. What is the minimum number of bags originally stored in granary A?

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