Amphoteric hydroxides react with both alkalies with acids. Which of the following Group 2 metal hydroxides is soluble in sodium hydroxide?

1. Be(OH)2

2. Mg(OH)2

3. Ca(OH)2

4. Ba(OH)2