The students of Xiangyang Primary School participated in tree planting activities. The sixth grade planted 328 trees, which is 32 times less than that of the fifth grade. How many trees were planted in the fifth and sixth grades?
向阳小学的学生参加植树活动，六年级植树328棵，比五年级的2倍少32棵，五六年级共植树多少棵？
<gadget id="calculator">328 + 32</gadget>
<output>360</output>

<gadget id="calculator">360 / 2</gadget>
<output>180</output>

<gadget id="calculator">180 + 328</gadget>
<output>508</output>

<result>508</result>