The original deposits of A and B are equal. Later, after A withdraws 180 yuan, B deposits another 420 yuan. At this time, B's deposit is three times that of A. How much money did A and B each have in savings?
甲、乙两人原来的存款数相等．后来甲取出180元后，乙又存入420元，这时乙的存款是甲的3倍．甲、乙两人原来各有存款多少元？
<gadget id="calculator">180 + 420</gadget>
<output>600</output>

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

<gadget id="calculator">600 / 2</gadget>
<output>300</output>

<gadget id="calculator">300 + 180</gadget>
<output>480</output>

<result>480</result>