The deposits of A and B are equal. Later, A withdraws 50 yuan, and B deposits 40 yuan. As a result, B's deposit is twice that of A. How much is the original deposit of each of the two? (writing process)
甲乙两人的存款相等，后来甲取50元，乙有存入40元，结果乙存款是甲的2倍，问二人原来的存款各是多少元？(写出过程)
<gadget id="calculator">50 * 2</gadget>
<output>100</output>

<gadget id="calculator">100 + 40</gadget>
<output>140</output>

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

<gadget id="calculator">140 / 1</gadget>
<output>140</output>

<result>140</result>