Paco had w salty cookies and x sweet cookies. He ate y sweet cookies and z salty cookies. How many salty cookies did Paco have left?
Paco had w salty cookies and x sweet cookies. He ate y sweet cookies and z salty cookies. 

That means that the number of sweet cookies he had left is x-y and the number of salty cookies he had left is w-z.