Answer:
Pb(NO3)2
Cd(NO3)2
Na2SO4
Explanation:
In the first part, addition of HCl leads to the formation of PbCl2 which is poorly soluble in water. This is the first precipitate that is filtered off.
When the pH is adjusted to 1 and H2S is bubbled in, CdS is formed. This is the second precipitate that is filtered off.
After this precipitate has been filtered off and the pH is adjusted to 8, addition of H2S and (NH4)2HPO4 does not lead to the formation of any other precipitate.
The yellow flame colour indicates the presence of Na^+ which must come from the presence of Na2SO4.