There are two bags of rice, A and B, and bag A is 18 kg less than bag B. If 6 kg of rice is taken from bag A and poured into bag B, then the ratio of the mass of the two bags of rice is 4:7. How much rice is in bag A? kilogram?
有甲、乙两袋大米，甲袋比乙袋少18千克，如果从甲袋取出6千克大米倒入乙袋，那么甲、乙两袋大米质量的比是4：7，甲袋原有大米多少千克？
<gadget id="calculator">4 / 7</gadget>
<output>4/7 = around 0.571429</output>

<gadget id="calculator">(4/7) * 18</gadget>
<output>72/7 = around 10.285714</output>

<gadget id="calculator">(4/7) * 6</gadget>
<output>24/7 = around 3.428571</output>

<gadget id="calculator">6 + (72/7) + (24/7)</gadget>
<output>138/7 = around 19.714286</output>

<gadget id="calculator">1 - (4/7)</gadget>
<output>3/7 = around 0.428571</output>

<gadget id="calculator">(138/7) / (3/7)</gadget>
<output>46</output>

<result>46</result>