There is a batch of goods in the warehouse, half of the total number and 12 tons are shipped out for the first time, and the remaining half and 11 tons are shipped out for the second time. There are 300 tons of goods left in the warehouse. How many tons are the original goods in the warehouse?
仓库内有一批货物，第一次运出总数的一半又12吨，第二次运去剩下的一半又11吨，仓库内还剩下货物300吨，仓库内原有货物多少吨？
<gadget id="calculator">300 + 11</gadget>
<output>311</output>

<gadget id="calculator">311 * 2</gadget>
<output>622</output>

<gadget id="calculator">622 + 12</gadget>
<output>634</output>

<gadget id="calculator">634 * 2</gadget>
<output>1_268</output>

<result>1_268</result>