Baker sold w cakes. If he had made x cakes initially How many more cakes did baker make than those he sold?
Let's say that the baker sold w cakes. 

This means that he had w + x cakes in total. 

We know that he sold w cakes, so he must have had x more cakes than those he sold. 

Therefore, the answer is x.