Answer:
BaI2
Explanation:
Barium gives a green flame test. When the halide test is conducted, a yellow precipitate indicates the presence of the iodide ion.
Also, BaI2 reacts with ammonium carbonate as shown below:
BaI2(aq) + (NH4)2CO3(aq) → BaCO3(s) + 2(NH4)I(aq)
The BaCO3(s) separates from the reaction system as a precipitate.