The deposits of A and B are equal. Later, A withdraws 80 yuan, and B deposits 100 yuan. As a result, B's deposit is three times that of A. How much is the total deposit of the two people?
A、B两人的存款相等，后来A取出80元，B又存入100元，结果B存款是A的3倍，原来两人共存款多少元．
<gadget id="calculator">3 * 80</gadget>
<output>240</output>

<gadget id="calculator">100 + 240</gadget>
<output>340</output>

<gadget id="calculator">3 - 1</gadget>
<output>2</output>

<gadget id="calculator">340 / 2</gadget>
<output>170</output>

<gadget id="calculator">170 * 2</gadget>
<output>340</output>

<result>340</result>