A school held a party and bought 50 bags of chocolate candies and fruit candies. Each bag of chocolate candies was 12 yuan, and each bag of fruit candies was 7 yuan. It is known that chocolate candy (2/5) is 26 yuan more expensive than fruit candy (1/3), so how much did the school spend on buying these 50 bags of candy?
某校开联欢会，买来巧克力糖和水果糖共50袋，巧克力糖每袋12元，水果糖每袋7元．已知巧克力糖的(2/5)比水果糖的(1/3)的价钱贵26元，那么学校买这50袋糖，一共花了多少元．
<gadget id="calculator">1 / 3</gadget>
<output>1/3 = around 0.333333</output>

<gadget id="calculator">7 * (1/3) * 50</gadget>
<output>350/3 = around 116.666667</output>

<gadget id="calculator">(350/3) + 26</gadget>
<output>428/3 = around 142.666667</output>

<gadget id="calculator">2 / 5</gadget>
<output>2/5 = around 0.4</output>

<gadget id="calculator">12 * (2/5)</gadget>
<output>24/5 = around 4.8</output>

<gadget id="calculator">7 * (1/3)</gadget>
<output>7/3 = around 2.333333</output>

<gadget id="calculator">(24/5) + (7/3)</gadget>
<output>107/15 = around 7.133333</output>

<gadget id="calculator">(428/3) / (107/15)</gadget>
<output>20</output>

<gadget id="calculator">12 * 20</gadget>
<output>240</output>

<gadget id="calculator">50 - 20</gadget>
<output>30</output>

<gadget id="calculator">7 * 30</gadget>
<output>210</output>

<gadget id="calculator">240 + 210</gadget>
<output>450</output>

<result>450</result>