There are a pile of pears and a pile of peaches with the same weight. The pears are sold for 17 kg, and the peaches are sold for 41 kg. The weight of the remaining pears is three times the weight of the remaining peaches. How many kilograms of pears were there?
有重量相同的一堆梨和一堆桃，梨卖出17千克，桃卖出41千克，剩下的梨的重量是剩下的桃的重量的3倍．原来有多少千克梨？
<gadget id="calculator">41 - 17</gadget>
<output>24</output>

<gadget id="calculator">3 - 1</gadget>
<output>2</output>

<gadget id="calculator">24 / 2</gadget>
<output>12</output>

<gadget id="calculator">41 + 12</gadget>
<output>53</output>

<result>53</result>