Table tennis balls cost 3 yuan each, badminton balls cost 4 yuan each, and the school bought 58 of them each. How much did you spend in total?
乒乓球每个3元，羽毛球每个4元，学校各买了58个，一共用了多少钱？
<gadget id="calculator">3 * 58</gadget>
<output>174</output>

<gadget id="calculator">4 * 58</gadget>
<output>232</output>

<gadget id="calculator">174 + 232</gadget>
<output>406</output>

<result>406</result>