Answer:
It uses sodium nitrate, so that the nitrate group reacts with silver and precipitates as a salt, thus forming silver nitrate
And as for the precipitation of barium, I would use sodium sulfate, since we would use the nitrate group, barium nitrate would form, which is very dangerous and is considered high risk.
Step-by-step explanation:
All the compounds that we name are reactions where as a product they give salts that are highly complex, where they are solid at room temperature, precipitate and are whitish in color.
These salts so that they precipitate it is important that they are in supersaturation since otherwise they will be in constant dynamism dissolving with the water, since they are soluble in them and the decantation will not be perceived at the naked eye of the human eye.