The Wufeng Grain Purchasing Station purchased 5 carts of rice, totaling 630 tons. The wheat purchased was 12 tons less than the rice. How many tons of wheat and rice were purchased?
五峰粮食收购站，收购了5车稻谷，共630吨，收购的小麦比稻谷少12吨，收购小麦和稻谷共多少吨？
<gadget id="calculator">630 - 12</gadget>
<output>618</output>

<gadget id="calculator">618 + 630</gadget>
<output>1_248</output>

<result>1_248</result>