The school buys 5 basketballs and 6 footballs. Each basketball costs 50 yuan, and each football costs 40 yuan. How much did the school spend on buying basketballs and footballs?
学校买回5个篮球和6个足球，每个篮球需要50元，每个足球需要40元，学校买篮球和足球一共用去多少元钱？
<gadget id="calculator">5 * 50</gadget>
<output>250</output>

<gadget id="calculator">6 * 40</gadget>
<output>240</output>

<gadget id="calculator">250 + 240</gadget>
<output>490</output>

<result>490</result>