
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
According to statistical data, the daily output of a factory does not exceed 200,000 pieces, and the daily defect rate $p$ is approximately related to the daily output $x$ (in 10,000 pieces) by the following relationship:
$$
p= \begin{cases} 
\frac{x^{2}+60}{540} & (0<x\leq 12) \\
\frac{1}{2} & (12<x\leq 20)
\end{cases}
$$
It is known that for each non-defective product produced, a profit of 2 yuan can be made, while producing a defective product results in a loss of 1 yuan. (The factory's daily profit $y$ = daily profit from non-defective products - daily loss from defective products).
(1) Express the daily profit $y$ (in 10,000 yuan) as a function of the daily output $x$ (in 10,000 pieces);
(2) At what daily output (in 10,000 pieces) is the daily profit maximized? What is the maximum daily profit in yuan?

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