What is the net ionic equation of the reaction of MgCl2 with NaOH?

a. What is the net ionic equation of the reaction of MgCl2 with NaOH? Express your answer as a chemical equation.
b. What is the net ionic equation of the reaction of MgSO4 with BaCl2? Express your answer as a chemical equation.