There is a batch of rice in the Weimin store. After selling (5/8) of the total, it is shipped in 540 kilograms. At this time, the ratio of the amount of rice in the store to the original rice is 6:7. How many kilograms of rice are there in the Weimin store? ?
为民商店有一批大米，卖出总数的(5/8)后，又运进540千克，这时商店里的大米数量与原来大米数量的比是6：7，为民商店原有大米多少千克？
<gadget id="calculator">5 / 8</gadget>
<output>5/8 = around 0.625</output>

<gadget id="calculator">6 / 7</gadget>
<output>6/7 = around 0.857143</output>

<gadget id="calculator">1 - (6/7)</gadget>
<output>1/7 = around 0.142857</output>

<gadget id="calculator">(5/8) - (1/7)</gadget>
<output>27/56 = around 0.482143</output>

<gadget id="calculator">540 / (27/56)</gadget>
<output>1_120</output>

<result>1_120</result>