z3 + 125 = z3 + 53 = (z + 5)(z2 - 5z + 25).
This follows from the "sum of cubes" formula, below.
a3+ b3 = (a + b)(a2 - ab + b2).
Hope this helps. If there's any more I can do to help please ask. I or another tutor here will be happy to assist you. Thanks!