Some hydroxides dissolve in acid and in strong base. Slide the pH and watch the solid go both ways. The curve is a V, and its floor is the pH where the metal is hardest to keep in solution.