A canteen bought a batch of rice, ate 242 kilograms, and the rest was 28 kilograms less than three times what was eaten. How many kilograms of rice did the canteen buy?
某食堂买来一批米，吃去242千克，剩下的比吃去的3倍少28千克，食堂买来多少千克米？
<gadget id="calculator">242 * 3</gadget>
<output>726</output>

<gadget id="calculator">726 - 28</gadget>
<output>698</output>

<gadget id="calculator">242 + 698</gadget>
<output>940</output>

<result>940</result>