Solution:
Concept: Silver chloride and lead chloride are the common chlorides that are insoluble in cold water. So only a silver salt or a lead salt gives a white precipitate when chloride ions (from dilute HCl) are added.
Step 1 — Pick out the compounds that give chloride precipitates.
From the list, the two compounds that contain silver or lead are lead nitrate and silver nitrate.
Step 2 — Lead nitrate.
Dilute hydrochloric acid gives a white precipitate of lead chloride:
Pb(NO3)2+2HCl→PbCl2↓+2HNO3
Step 3 — Silver nitrate.
Dilute hydrochloric acid gives a curdy white precipitate of silver chloride:
AgNO3+HCl→AgCl↓+HNO3
The other compounds in the list, such as sodium nitrate or ammonium nitrate, form soluble chlorides, so no precipitate appears.

Watch out: Lead chloride dissolves in hot water, so the test is done with cold solutions.
Therefore, the two compounds are lead nitrate and silver nitrate.