Lenin School bought back 4 basketballs and 5 footballs. Each basketball is 58.5 yuan, and each football is 25.8 yuan. How much did the school spend in total?
列宁学校买回4个篮球和5个足球．篮球每个58.5元，足球每个25.8元．学校一共用了多少钱？
<gadget id="calculator">58.5 * 4</gadget>
<output>234</output>

<gadget id="calculator">25.8 * 5</gadget>
<output>129</output>

<gadget id="calculator">234 + 129</gadget>
<output>363</output>

<result>363</result>