You want to extract magnesium, potassium, hydrogen, bromine and oxygen using electrolysis. Suggest the starting electrolyte (ionic compound) you could use and under what conditions you would need to perform the experiment.