The precipitate P contains
pb2+pb^{2+}pb2+
Hg22+Hg_2^{2+}Hg22+
Ag+Ag^{+}Ag+
Hg2+Hg^{2+}Hg2+
Pb salts form white precipitate of PbCl2 with dil. HCl, which dissolves in hot water.
Tagged Group analysis and confirmatory tests of cations. Machine-assigned, so read it as a strong shortlist rather than a verdict.