See explanation below.
Work Step by Step
When the brines are evaporated to dryness and then melted and electrolyzed. Iodides and bromides are highly present in brines. These brines act as good sources of iodides and bromides. The oxidation potential of iodide is more positive than bromide. Hence iodine is formed first.