Two baskets of pears with the same weight, 7 kilograms are taken from basket A, and 19 kilograms are added to basket B. At this time, the weight of pears in basket B is three times that of basket A. How many kilograms are there in each of the two baskets?
两筐重量一样的梨，从甲筐取走7千克，乙筐加入19千克，这时乙筐梨的重量是甲筐的3倍，问原来两筐梨各有多少千克？
<gadget id="calculator">7 + 19</gadget>
<output>26</output>

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

<gadget id="calculator">26 / 2</gadget>
<output>13</output>

<gadget id="calculator">13 + 7</gadget>
<output>20</output>

<result>20</result>