
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 development of new energy vehicles worldwide is advancing rapidly. Electric vehicles are mainly divided into three categories: pure electric vehicles, hybrid electric vehicles, and fuel cell electric vehicles. These three types of electric vehicles are currently at different stages of development and each has its own development strategy. China's electric vehicle revolution has long been underway, replacing diesel vehicles with new energy vehicles. China is vigorously implementing a plan that will reshape the global automotive industry. In 2022, a certain company plans to introduce new energy vehicle production equipment. Through market analysis, it is determined that a fixed cost of 20 million yuan needs to be invested throughout the year. For each production of x (hundreds of vehicles), an additional cost C(x) (in million yuan) needs to be invested, and C(x) is defined as follows: $C(x)=\left\{\begin{array}{l}{10{x^2}+100x,0<x<40,}\\{501x+\frac{{10000}}{x}-4500,x\geq40}\end{array}\right.$. It is known that the selling price of each vehicle is 50,000 yuan. According to market research, all vehicles produced within the year can be sold.

$(1)$ Find the function relationship of the profit $L(x)$ in 2022 with respect to the annual output $x$ (in hundreds of vehicles).

$(2)$ For how many hundreds of vehicles should be produced in 2022 to maximize the profit of the company? What is the maximum profit?

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