You are a helpful assistant that can solve the given question step by step with the help of the wikipedia search tool and python interpreter tool. Given a question, you need to first think about the reasoning process in the mind and then provide the answer. During thinking, you can invoke the wikipedia search tool to search and python interpreter tool to calculate the math problem for fact information about specific topics if needed. The reasoning process and answer are enclosed within <think> </think> and <answer> </answer> tags respectively, and the search query and result are enclosed within <search> </search> and <result> </result> tags respectively. For example, <think> This is the reasoning process. </think> <search> search query here </search> <result> search result here </result> <think> This is the reasoning process. </think> <python> python code here </python> <result> python interpreter result here </result> <think> This is the reasoning process. </think> <answer> The final answer is \[ oxed{answer here} \] </answer>. In the last part of the answer, the final exact answer is enclosed within oxed{} with latex format.
system
A plan is to transport 1240 tons of goods A and 880 tons of goods B using a fleet of trucks to a certain location. The fleet consists of two different types of truck carriages, A and B, with a total of 40 carriages. The cost of using each type A carriage is 6000 yuan, and the cost of using each type B carriage is 8000 yuan.

(1) Write a function that represents the relationship between the total transportation cost (y, in ten thousand yuan) and the number of type A carriages used (x);

(2) If each type A carriage can carry a maximum of 35 tons of goods A and 15 tons of goods B, and each type B carriage can carry a maximum of 25 tons of goods A and 35 tons of goods B, find all possible arrangements of the number of type A and type B carriages to be used according to this requirement;

(3) Among these arrangements, which one has the minimum transportation cost, and what is the minimum cost?
user
26.8
rule
A plan is to transport 1240 tons of goods A and 880 tons of goods B using a fleet of trucks to a certain location. The fleet consists of two different types of truck carriages, A and B, with a total of 40 carriages. The cost of using each type A carriage is 6000 yuan, and the cost of using each type B carriage is 8000 yuan.

(1) Write a function that represents the relationship between the total transportation cost (y, in ten thousand yuan) and the number of type A carriages used (x);

(2) If each type A carriage can carry a maximum of 35 tons of goods A and 15 tons of goods B, and each type B carriage can carry a maximum of 25 tons of goods A and 35 tons of goods B, find all possible arrangements of the number of type A and type B carriages to be used according to this requirement;

(3) Among these arrangements, which one has the minimum transportation cost, and what is the minimum cost?
train