The ratio of the tonnage of grain stored in warehouses A and B is 4:3. After 45 tons are taken out from warehouse A and transported to warehouse B, the ratio of the tonnage of grain stored in warehouses A and B is 7:9. So how many tons of grain are stored in each of the two warehouses?
甲乙两个仓库存粮吨数的比为4：3，从甲仓库取出45吨运往乙仓库后，甲乙两仓库存粮吨数的比是7：9，那么原来两仓库各存粮多少吨？
<gadget id="calculator">4 + 3</gadget>
<output>7</output>

<gadget id="calculator">4 / 7</gadget>
<output>4/7 = around 0.571429</output>

<gadget id="calculator">7 + 9</gadget>
<output>16</output>

<gadget id="calculator">7 / 16</gadget>
<output>7/16 = around 0.4375</output>

<gadget id="calculator">(4/7) - (7/16)</gadget>
<output>15/112 = around 0.133929</output>

<gadget id="calculator">45 / (15/112)</gadget>
<output>336</output>

<result>336</result>