The school buys 6 basketballs at 42 yuan each, and 8 footballs at 39 yuan each. How much do you need?
学校买6个篮球，每个42元，买8个足球，每个39元．共需要多少钱？
<gadget id="calculator">42 * 6</gadget>
<output>252</output>

<gadget id="calculator">39 * 8</gadget>
<output>312</output>

<gadget id="calculator">252 + 312</gadget>
<output>564</output>

<result>564</result>