A salt containing chloride ions or hydrochloric acid.
Explanation:
Hello,
In this case, by adding a chloride-based salt or hydrochloric acid, precipitation of silver chloride could be attained by cause of its neglectable solubility in water as shown below:
Moreover, barium chloride is highly soluble in water, for that reason it remains in aqueous solution as specified: