Two baskets of apples with the same weight, take 8 kg from basket A and 20 kg from basket B. At this time, the weight of apples in basket A is 5 times that of basket B. How many kilograms are there in each of the two baskets?
两筐重量一样的苹果，从甲筐取出8千克，从乙筐取出20千克，这时甲筐苹果的重量是乙筐的5倍，问原来两筐苹果各有多少千克？
<gadget id="calculator">20 - 8</gadget>
<output>12</output>

<gadget id="calculator">5 - 1</gadget>
<output>4</output>

<gadget id="calculator">12 / 4</gadget>
<output>3</output>

<gadget id="calculator">3 + 20</gadget>
<output>23</output>

<result>23</result>