Answer:
X - (Z x 5)
If she has X pieces of cake she would subtract the amount of pieces given to find how much is left. Each person would get Z amount of pieces and there was 5 people so you would do Z x 5 to get amount of pieces given. If you know how many pieces were given you just have to subtract it off the amount to get the answer.
Hope this helps
Explanation: