Here's what I do when things get this messy: start replacing all my constants with consolidated constants, like A=[OH-]/Kb, for instance.
I rearranged all the equations so that x=Ksp/y, y=Az, z=B/z2-Az, by using the first two substitutions in my equation for z. (B=2(KspKb2)/[OH]-).