The school bought 8 basketballs and 8 badmintons. The basketballs are 38.5 yuan each, and the badmintons are 1.5 yuan each. How much did you spend in total?
学校买了篮球和羽毛球各8个，篮球每个38.5元，羽毛球每个1.5元，一共用了多少钱？
<gadget id="calculator">38.5 + 1.5</gadget>
<output>40</output>

<gadget id="calculator">40 * 8</gadget>
<output>320</output>

<result>320</result>