The oil company has two oil depots A and B. The A warehouse has 180 tons of gasoline, and the B warehouse has 120 tons of gasoline. Now the oil company wants to transport gasoline to two gas stations A and B. It is known that the shipping fee from A warehouse to A gas station is 50 per ton The freight is 40 yuan per ton to B gas station, 30 yuan per ton to A gas station from B warehouse, and 60 yuan per ton to B gas station. It is known that station A needs 140 tons of oil, and station B needs For 130 tons of oil, how much will the oil company spend on shipping?
石油公司有AB两个油库，A库有汽油180吨，B库有汽油120吨，现在石油公司要将汽油运到甲乙两个加油站，已知从A库运到甲加油站每吨运费50元，运到乙加油站每吨运费40元，从B库运到甲加油站每吨运费30元，运到乙加油站每吨运费60元，已知甲站需油140吨，乙站需油130吨，石油公司一共要花多少元运费．
<gadget id="calculator">120 * 30</gadget>
<output>3_600</output>

<gadget id="calculator">140 - 120</gadget>
<output>20</output>

<gadget id="calculator">20 * 50</gadget>
<output>1_000</output>

<gadget id="calculator">130 * 40</gadget>
<output>5_200</output>

<gadget id="calculator">3_600 + 1_000 + 5_200</gadget>
<output>9_800</output>

<result>9_800</result>