In the second step, they should have divided 32 by 4 instead of multiplying. Whatever you do to one side, you must do to the other, or the equation won’t be balanced. The correct answer is z = 8.
I’ve attached all the work & solutions in the image below. Hope this helps! :)