Answer:
We can write this as z = (pu-W)/p
This is the single fraction with pu-W up top and p in the denominator.
Other answers are possible.
===========================================================
Work Shown:
An alternative method could have these steps instead