The school plans to buy some footballs and basketballs. It is known that it costs 257 yuan to buy 2 footballs and 5 basketballs, and 380 yuan to buy 5 footballs and 5 basketballs. If you buy 4 footballs and 6 basketballs, how much will it cost in total?
学校打算买一些足球和篮球，已知买2个足球和5个篮球需要257元，买5个足球和5个篮球需要380元，如果买4个足球和6个篮球，一共需要多少钱？
<gadget id="calculator">380 - 257</gadget>
<output>123</output>

<gadget id="calculator">5 - 2</gadget>
<output>3</output>

<gadget id="calculator">123 / 3</gadget>
<output>41</output>

<gadget id="calculator">41 * 4</gadget>
<output>164</output>

<gadget id="calculator">41 * 2</gadget>
<output>82</output>

<gadget id="calculator">257 - 82</gadget>
<output>175</output>

<gadget id="calculator">175 / 5</gadget>
<output>35</output>

<gadget id="calculator">35 * 6</gadget>
<output>210</output>

<gadget id="calculator">164 + 210</gadget>
<output>374</output>

<result>374</result>