Weights of different weights are placed at both ends of the balance. It is known that the weight of the right end is 1/3 of the weight of the left end. After moving 10 grams of weight from the left end to the right end, the balance is balanced. Ask, how many weights are there at both ends of the balance?
天平两端放置着不同重量的砝码，已知右端砝码的重量是左端砝码重量的(1/3)，将10克砝码从左端移到右端后，天平平衡了．问，天平两端共有多少砝码？
<gadget id="calculator">10 * 2</gadget>
<output>20</output>

<gadget id="calculator">1 / 3</gadget>
<output>1/3 = around 0.333333</output>

<gadget id="calculator">1 - (1/3)</gadget>
<output>2/3 = around 0.666667</output>

<gadget id="calculator">20 / (2/3)</gadget>
<output>30</output>

<gadget id="calculator">1 + (1/3)</gadget>
<output>4/3 = around 1.333333</output>

<gadget id="calculator">30 * (4/3)</gadget>
<output>40</output>

<result>40</result>