
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 certain township responded to the call of "green waters and green mountains are mountains of gold and silver" and tailored the town to be a "ecological fruit characteristic town" according to local conditions. After investigation, it was found that the yield $W$ (unit: kg) of a certain fruit tree is related to the amount of fertilizer $x$ (unit: kg) applied as follows: $W(x)=\left\{{\begin{array}{l}{5({{x^2}+3}),0≤x≤2,}\\{\frac{{50x}}{{1+x}},2＜x≤5,}\end{array}}\right.$. The cost of fertilizer input is $10x$ yuan, and other cost inputs (such as cultivation management, fertilization, and labor costs) are $20x$ yuan. It is known that the market price of this fruit is approximately $15$ yuan/kg, and the sales are smooth and in short supply. Let the profit per tree of this fruit be $f\left(x\right)$ (unit: yuan).<br/>$(1)$ Find the relationship formula of the profit per tree $f\left(x\right)$ (yuan) with respect to the amount of fertilizer applied $x$ (kg);<br/>$(2)$ When the cost of fertilizer input is how much yuan, the maximum profit per tree of this fruit is obtained? What is the maximum profit?

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