Choose the correct answer form the alternatives given.
A solution of a compound X in dilute HCl on treatment with a solution of BaCl2 gives a white precipitate of compound Y which is insoluble in conc. HNO3 and conc. HCl. Compound X imparts golden yellow colour to the flame.
X(solution in dilute HCl)(imparts golden yellow colour)+BaCl2⟶YwhitepptConc.HNO3+−−−−−−−−→ConcHclInsoluble
What are compounds X and Y?