The physical education teacher bought 3 volleyballs and 2 basketballs, each volleyball was 40 yuan, and each basketball was 62 yuan. How much did you spend in total?
体育老师买了3个排球和2个篮球，每个排球40元，每个篮球62元．一共用了多少元？
<gadget id="calculator">3 * 40</gadget>
<output>120</output>

<gadget id="calculator">2 * 62</gadget>
<output>124</output>

<gadget id="calculator">120 + 124</gadget>
<output>244</output>

<result>244</result>