Analytical Solutions for General Two-Wedge Stability