
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
Food safety issues are increasingly attracting people's attention. The abuse of pesticides and chemical fertilizers poses certain risks to public health. To provide consumers with safe vegetables, a rural cooperative invests 2 million yuan each year to build two pollution-free vegetable greenhouses, A and B. Each greenhouse requires an investment of at least 200,000 yuan. Greenhouse A grows tomatoes, and Greenhouse B grows cucumbers. Based on past experience in vegetable cultivation, it is found that the annual income P from growing tomatoes and the annual income Q from growing cucumbers with an investment of a (in ten thousand yuan) satisfy $P=80+4\sqrt{2a}$ and $Q=\frac{1}{4}a+120$. Let the investment in Greenhouse A be x (in ten thousand yuan), and the total annual income from the two greenhouses be $f(x)$ (in ten thousand yuan).
(1) Find the value of $f(50)$;
(2) How should the investments in Greenhouses A and B be arranged to maximize the total income $f(x)$?

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