The number of peach trees in the orchard is twice that of apple trees, the number of pear trees is 15 fewer than that of peach trees, and there are 47 pear trees. How many trees are there in total?
果园里桃树的棵数是苹果树的2倍，梨树的棵数比桃树少15棵，梨树有47棵．三种树共多少棵？
<gadget id="calculator">47 + 15</gadget>
<output>62</output>

<gadget id="calculator">62 / 2</gadget>
<output>31</output>

<gadget id="calculator">31 + 62 + 47</gadget>
<output>140</output>

<result>140</result>