An ellipse is tangent to both the $x$-axis and the $y$-axis, and its foci are at $(2, -3)$ and $(2, -8).$ Find the length of the major axis.