Answer:
[tex]Br_2[/tex]
Explanation:
The compound [tex]X_2[/tex] is [tex]Br_2[/tex].
The reaction included are:
[tex]Br_2+NaCl--> No\ reaction[/tex] (because bromine is less reactive than chlorine)
But , because of hexane the solution get dilute and its color changes to orange.
Now, NaI is added and we know Br is more reactive than I.
Therefore it replace it.
Reaction: [tex]Br_2+NaI-->NaBr+I_2[/tex]
Purple color develop due to formation of Iodine.