In March, 360 peach trees were planted, twice as many pear trees were planted as peach trees, and half of the total number of apple trees were planted. How many apple trees were planted?
三月种桃树360棵，种梨树的棵树是桃树的2倍，种的苹果树是前两种树总数的一半，种的苹果树有多少棵？
<gadget id="calculator">2 + 1</gadget>
<output>3</output>

<gadget id="calculator">3 / 2</gadget>
<output>3/2 = around 1.5</output>

<gadget id="calculator">360 * (3/2)</gadget>
<output>540</output>

<result>540</result>