The ratio of the weight of grain stored in warehouses A and B is 8:7. If (1/4) of the stored grain is shipped out from warehouse A, then warehouse B has 5 tons more grain than warehouse A. How many tons of grain did warehouse A originally store?
甲、乙两个仓库存粮的重量之比是8：7，如果从甲仓库运出存粮的(1/4)，则乙仓库存粮比甲仓库多5吨．甲仓库原来存粮多少吨？
<gadget id="calculator">1 / 4</gadget>
<output>1/4 = around 0.25</output>

<gadget id="calculator">7 / 8</gadget>
<output>7/8 = around 0.875</output>

<gadget id="calculator">(7/8) - 1</gadget>
<output>-1/8 = around -0.125</output>

<gadget id="calculator">(1/4) + (-1/8)</gadget>
<output>1/8 = around 0.125</output>

<gadget id="calculator">5 / (1/8)</gadget>
<output>40</output>

<result>40</result>