
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
The 22nd FIFA World Cup will be held in Qatar from November 20th to December 18th, 2022. This will be the first time the World Cup is held in a Middle Eastern country. This World Cup is likely to be the swan song of the "two greats" Messi and Ronaldo, as their proud youth will be embraced by time. As they are about to bid farewell, they realize that the peerless elegance belonging to their generation will not fade with time, but will only be recalled inadvertently in the drifting of time. The World Cup is the stage where players realize their dreams, the haven of emotions for fans, and the arena for businessmen to compete. The fixed cost for a certain football equipment manufacturing company in 2022 is 10 million yuan, and an additional investment of R(x) million yuan is required for producing x thousand pieces of equipment. After calculation and market evaluation, it is found that R(x) is defined as follows: 

\[R(x)=\begin{cases} x^2+ax, & 0\leq x < 80 \\ \frac{301x^2-2750x+10000}{x}, & x\geq 80 \end{cases}\]

A survey reveals that an additional investment of 2100 million yuan is required when producing 10 thousand pieces of equipment. The market selling price for each thousand pieces of equipment is 300 million yuan, and according to market research, a maximum of 150 thousand pieces can be sold in 2022.

$(1)$ Write the function of the profit W (in million yuan) in 2022 with respect to the annual output x (in thousand pieces). (Profit = Total sales - Total cost)

$(2)$ Determine the annual output in thousand pieces that maximizes the profit for the company in 2022. What is the maximum profit?

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