The forest protection team of Chengxi Primary School was divided into three groups to plant trees. The first group planted half of the trees planted by the other two teams, the second group planted half the trees planted by the other two groups (5/7), and the third group 51 trees were planted, how many trees were planted by the three groups?
城西小学护林小队分成三组植树，第一组植树的棵树是其他两队的植树棵的一半，第二组植树的棵树是其他两组植树棵树的(5/7)，第三组植树51棵，三个小组共植树多少棵？
<gadget id="calculator">5 / 7</gadget>
<output>5/7 = around 0.714286</output>

<gadget id="calculator">(5/7) * 51</gadget>
<output>255/7 = around 36.428571</output>

<gadget id="calculator">51 + (255/7)</gadget>
<output>612/7 = around 87.428571</output>

<gadget id="calculator">2 - (5/7)</gadget>
<output>9/7 = around 1.285714</output>

<gadget id="calculator">(612/7) / (9/7)</gadget>
<output>68</output>

<gadget id="calculator">68 * 2</gadget>
<output>136</output>

<gadget id="calculator">68 + 136</gadget>
<output>204</output>

<result>204</result>