Students from Xinhua Primary School participated in tree planting activities, and 164 trees were planted in the sixth grade, 16 more than twice the number in the fifth grade. How many trees were planted in the fifth and sixth grades?
新华小学学生参加植树活动，六年级植树164棵，比五年级2倍多16棵．五、六年级共植树多少棵？
<gadget id="calculator">164 - 16</gadget>
<output>148</output>

<gadget id="calculator">148 / 2</gadget>
<output>74</output>

<gadget id="calculator">74 + 164</gadget>
<output>238</output>

<result>238</result>