certain warehouse shipped out raw materials three times, half of the total was shipped out for the first time, the remaining half was shipped out for the second time, and the remaining half after the first two shipments were shipped out for the third time, and finally the remaining raw materials were distributed to A and B Two factories. Factory A gets 6 tons, twice that of Factory B. How many tons of raw materials are there in the warehouse?
某仓库运出三次原料，第一次运出总数的一半，第二次运出余下的一半，第三次运出前两次运完后余下的一半，最后把剩下的原料分给甲、乙两个工厂．甲厂得6吨，是乙厂的2倍，仓库原有原料多少吨？
<gadget id="calculator">6 / 2</gadget>
<output>3</output>

<gadget id="calculator">6 + 3</gadget>
<output>9</output>

<gadget id="calculator">9 * 2 * 2 * 2</gadget>
<output>72</output>

<result>72</result>