18 tons of rice in the granary were transported away, and then 22.5 tons were shipped in. Now there are 40.5 tons of rice in the granary. How many tons of rice were there in the granary?
粮仓里的大米运走18吨后又运来22.5吨，现在粮仓里一共有大米40.5吨．粮仓里原来有大米多少吨？
<gadget id="calculator">40.5 - 22.5</gadget>
<output>18</output>

<gadget id="calculator">18 + 18</gadget>
<output>36</output>

<result>36</result>