Br- + I- + 2H+ → Br2 + I2 + H2
In this reaction, bromide and iodide ions react with hydrogen ions to form bromine and iodine molecules, respectively. The hydrogen ions are from the HCl. The net ionic equation only includes the species that are involved in the reaction and the spectator ions (Cl-) are excluded.