I'm not 100% that I comprehended your wording (try breaking it down with less tangents), but I think you are trying to selectively precipitate:
You are right in looking at the concept of solubility for your answer.
You need to precipitate out a certain compound and leave the other in solution. You will probably need a table of values to help you.
Hopefully this points you in the right direction.