fruit shop sells 540 kilograms of apples in the morning on a Saturday, and 40 kilograms less in the afternoon than in the morning. How many kilograms of apples did the fruit shop sell in total on Saturday?
一个水果店在在星期六，上午卖掉苹果540千克，下午卖掉比上午少40千克．这个水果店在星期六一共卖掉多少千克苹果？
<gadget id="calculator">540 - 40</gadget>
<output>500</output>

<gadget id="calculator">500 + 540</gadget>
<output>1_040</output>

<result>1_040</result>