
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
A rectangular vegetable garden is enclosed on three sides by a fence while the fourth side is bordered by a greenhouse that is $500$ feet long. The fence costs $\$8$ per foot and $\$2,\!240$ is spent altogether. Given that the side of the garden parallel to the greenhouse cannot exceed $300$ feet due to a water tank, find to the nearest foot, the length of the side parallel to the greenhouse that will maximize the area of the garden.

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