I guess that z and z' has the same meaning as in
this Wikipedia article. If so, then z is simplified transaction hash. All you need to do is just calculate SHA-256(simplified_transaction) and that will be your z. The same for z', it will be just another simplified transaction signed using the same k value. Here you have two outputs, so for each of them you should create two different simplified transactions.
Here is some example.