Start with

Note that this implies that z cannot be zero, otherwise in the term 8/z you would have a division by zero.
So, supposing that z is not zero, we multiply both sides by z:

Rearrange the equation into

And solve the quadratic equation as usual to get

Since both of these solutions are non-zero, we can accept them.