The elder brother has a deposit of 520 yuan, and the younger brother has a deposit of 240 yuan. After the two take out the same amount of money, the amount of money left by the elder brother is 5 times that of the younger brother. How much did the two withdraw in total?
哥哥有存款520元，弟弟有存款240元．两人取出同样多的钱数后，哥哥剩下的钱数是弟弟的剩下钱数的5倍．求两人一共取出了多少钱？
<gadget id="calculator">240 * 5</gadget>
<output>1_200</output>

<gadget id="calculator">1_200 - 520</gadget>
<output>680</output>

<gadget id="calculator">5 - 1</gadget>
<output>4</output>

<gadget id="calculator">680 / 4</gadget>
<output>170</output>

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

<result>340</result>