The mass of two bags of rice is equal, 24 kg is taken out of bag A, and 28 kg is put into bag B, then the mass of bag B is three times that of bag A. How many kilograms are the original rice bags of A and B?
两袋大米的质量相等，甲袋取走24千克，乙袋装进28千克，这时乙袋的质量是甲袋的3倍．甲、乙两袋原有大米多少千克？
<gadget id="calculator">28 + 24</gadget>
<output>52</output>

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

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

<gadget id="calculator">26 + 24</gadget>
<output>50</output>

<result>50</result>