Uncle Li has two bank cards with 500 yuan and 4000 yuan deposited in them respectively. He withdraws some money from the second card and deposits it into the first bank card. The money in the second card is exactly twice the amount in the first card. So how much money did Uncle Li withdraw in total?
李叔叔有两张银行卡，里面分别存了500元和4000元．他从第二张卡里取了一些钱，存入第一张银行卡，第二张卡里的钱恰好是第一张卡里钱数的两倍．那么李叔叔总共取了多少元钱．
<gadget id="calculator">500 + 4_000</gadget>
<output>4_500</output>

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

<gadget id="calculator">4_500 / 3</gadget>
<output>1_500</output>

<gadget id="calculator">1_500 - 500</gadget>
<output>1_000</output>

<result>1_000</result>