If Hf supposed to be hafnium metal, or did you mean HF?
Only the hydroxides will react to form salts. The MgSO4 will precipitate out, but the CaSO4 may remain in solution until enough water is evaporated to saturate the solution.
DrBob222 will correct me if I am wrong
If H2SO4 were added to the following, would it form a salt, if so what is the name of the salt?
NaCl
Ca(OH)2
Hf
AlCl3
H2O
Mg(OH)2
2 answers
I expect Hf is supposed to be HF.
Both Ca(OH)2 and Mg(OH)2 will form salts with H2SO4 as DrWLS wrote.
Both Ca(OH)2 and Mg(OH)2 will form salts with H2SO4 as DrWLS wrote.