1)write the fomulas for the following compound:

Magnesium hydroxide.
2)Write the names of the compound:
Ba(ClO3)2 *the numbers are the subscripts*

I really don't understand how to do those two, I did the rest of them. I could really use the help. THANKS!!

The answer is MgOH-1.