Two baskets of apples are of the same quality. After basket A sells 16 kilograms and basket B sells 28 kilograms, the remaining basket A is exactly 5 times that of basket B. How many kilograms of apples are there in each of the two baskets?
两筐苹果质量相同，甲筐卖出16千克，乙筐卖出28千克后，余下的甲筐正好是乙筐的5倍，两筐苹果原来各有多少千克？
<gadget id="calculator">28 - 16</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">28 + 3</gadget>
<output>31</output>

<result>31</result>