What rares do you have ?
If all those are rare weapons, it's easy to get them back from AI3 / Arena
If they are shards, well, it's a difficult to choice to make....
Also, as a general suggestion, don't sell the upgraded cards and don't upgrade cards yourself unless you have to do so. ("Have to" means in desperate need of building a farmer)