fountain pen costs 6 yuan, and a ballpoint pen costs 4 yuan. Teacher Wang bought 24 fountain pens and 35 ballpoint pens as prizes. How much did he spend in total?
一支钢笔售价6元，一支圆珠笔售价4元．王老师买了24支钢笔和35支圆珠笔作为奖品，他一共要花多少钱？
<gadget id="calculator">6 * 24</gadget>
<output>144</output>

<gadget id="calculator">4 * 35</gadget>
<output>140</output>

<gadget id="calculator">144 + 140</gadget>
<output>284</output>

<result>284</result>