A solution of a compound $X$ in dilute $HCl$ on treatment with a solution of $BaCl_2$ gives a white precipitate of a compound $Y$ which is insoluble in cone. $HNO_3$ and conc. $HCl$. Compound $X$ imparts golden yellow colour to the flame.
$\underset{\text{(imparts golden
yellow colour)}}{ {X (Solution \,in \,dilute HCl) }}$ $+\, {BaCl2 -> }$$\underset{\text{Whit ppt}}{ {Y}}$ $ {->[\text{Conc}. HNO_3][\text{Conc}.HCl] Insoluble}$
What are compounds $X$ and $Y$ ?