The canteen of our school bought some rice and ate 240 kilograms in 6 days. According to this calculation, the rest was eaten in 8 days. How many kilograms of rice did the school buy in total?
我校食堂买来一些大米，6天吃了240千克，照这样计算，剩下的吃了8天，学校一共买来多少千克大米？
<gadget id="calculator">240 / 6</gadget>
<output>40</output>

<gadget id="calculator">40 * 8</gadget>
<output>320</output>

<gadget id="calculator">320 + 240</gadget>
<output>560</output>

<result>560</result>