Xiao Ming bought 20 stamps worth 8 cents and 40 stamps worth 6 cents. How much would he have to pay in total?
小明买了20枚8角的邮票和40枚6角的邮票，一共要付多少元？
<gadget id="calculator">20 * 0.8</gadget>
<output>16</output>

<gadget id="calculator">40 * 0.6</gadget>
<output>24</output>

<gadget id="calculator">16 + 24</gadget>
<output>40</output>

<result>40</result>