There are 4,000 tons of grain stored in warehouses A and B. When warehouse A transports 950 tons in and warehouse B transports 450 tons, the ratio of the tonnage between warehouses A and B is 8:7, so warehouse A originally How many tons of grain?
甲、乙两个仓库共存粮4000吨，当甲仓公运入950吨，而乙仓运出450吨后，甲、乙两仓存量是的吨数之比是8：7，则甲仓原来存粮多少吨？
<gadget id="calculator">950 - 450</gadget>
<output>500</output>

<gadget id="calculator">4_000 + 500</gadget>
<output>4_500</output>

<gadget id="calculator">7 + 8</gadget>
<output>15</output>

<gadget id="calculator">8 / 15</gadget>
<output>8/15 = around 0.533333</output>

<gadget id="calculator">4_500 * (8/15)</gadget>
<output>2_400</output>

<gadget id="calculator">2_400 - 950</gadget>
<output>1_450</output>

<result>1_450</result>