There are two warehouses, A and B, and warehouse A stores 30 tons of grain. If (1/10) is taken out from warehouse A and put into warehouse B, the amount of grain stored in warehouse A is exactly (1/2) of that in warehouse B. How many kilograms of grain are stored in the two warehouses? ．
甲乙两个仓库，甲仓存粮30吨，如果从甲仓中取出(1/10)放入乙仓，则甲仓库的存粮数正好是乙仓库的(1/2)，两仓一共存粮多少千克．
<gadget id="calculator">1 / 10</gadget>
<output>1/10 = around 0.1</output>

<gadget id="calculator">1 - (1/10)</gadget>
<output>9/10 = around 0.9</output>

<gadget id="calculator">1 / 2</gadget>
<output>1/2 = around 0.5</output>

<gadget id="calculator">(9/10) / (1/2)</gadget>
<output>9/5 = around 1.8</output>

<gadget id="calculator">30 * (9/5)</gadget>
<output>54</output>

<gadget id="calculator">30 * (9/10)</gadget>
<output>27</output>

<gadget id="calculator">54 + 27</gadget>
<output>81</output>

<gadget id="calculator">81 * 1_000</gadget>
<output>81_000</output>

<result>81_000</result>