Wanjiafu Supermarket held promotional activities during the Spring Festival, and my mother wanted to buy 8 pairs of slippers and 6 bags of washing powder. Slippers are 4 yuan a pair, buy three get one free, washing powder is 8 yuan and 3 bags. How much does the mother have to pay in total?
万家福超市春节时搞促销活动，妈妈想买8双拖鞋和6袋洗衣粉．拖鞋4元一双，买三送一，洗衣粉8元3袋．妈妈一共需付多少元？
<gadget id="calculator">3 + 1</gadget>
<output>4</output>

<gadget id="calculator">8 / 4</gadget>
<output>2</output>

<gadget id="calculator">3 * 4 * 2</gadget>
<output>24</output>

<gadget id="calculator">6 / 3</gadget>
<output>2</output>

<gadget id="calculator">2 * 8</gadget>
<output>16</output>

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

<result>40</result>