Easy.
Buy Pokémon Bank, then transfer your Pokémon to OR/AS if you have it. If you don't have it then just store the Pokémon until you can get rid of them.
Also, if you don't want to pay the price, either Wonder Trade them, or just regular trade them, and you could also trade with a friend so they could give it back to you
You're Welcome!