There is a batch of rice in the warehouse. Half of the rice was shipped out on the first day, less than 2 tons, and the remaining half was shipped out on the second day, more than 3 tons. At this time, there were still 12 tons left in the warehouse. How many tons of rice were there originally?
仓库里有一批大米，第一天运出全部大米的一半少2吨，第二天运出余下的一半多3吨，这时仓库里还剩下12吨，仓库里原有大米多少吨？
<gadget id="calculator">12 + 3</gadget>
<output>15</output>

<gadget id="calculator">15 * 2</gadget>
<output>30</output>

<gadget id="calculator">30 - 2</gadget>
<output>28</output>

<gadget id="calculator">28 * 2</gadget>
<output>56</output>

<result>56</result>