There is one thing I do not understand about unspent outputs and change addresses. For example, let's say a person has 5BTC in a wallet, and they have 2 unspent outputs of 3BTC and 2BTC.
They one day need to pay 2.5BTC for something. I know about the coin selection algorithm but lets just say the Bitcoin wallet select 2.5BTC out of the 3btc unspent output. This would leave 0.5BTC to send to the change address.
Now here is my question. Let's say they make the change address to a new wallet. Will the new wallet have 0.5BTC and the old wallet have 2BTC or will the new wallet have 2.5BTC and the old wallet 0BTC
Basically the 2BTC unspent output that was never touched, does it go with the change address or does it stay in the old wallet?