A chef had w apples and x peaches. After making some pies, he had y apples left. How many apples did he use?
The chef had w apples and x peaches. 

After making some pies, he had y apples left. 

How many apples did he use?

The chef used w-y apples.