There are two classes of origami flowers in the sixth grade. The first class has 54 students, and each person folds 3 flowers on average; the second class has 27 students, and each person folds 4 flowers on average. How much did the two shifts cost?
六年级两个班折纸花，一班54人，平均每人折3朵；二班有27人，平均每人折4朵．两班共折了多少花？
<gadget id="calculator">54 * 3</gadget>
<output>162</output>

<gadget id="calculator">46 * 4</gadget>
<output>184</output>

<gadget id="calculator">162 + 184</gadget>
<output>346</output>

<result>346</result>