Baker's friend bought w cakes from him. If he had made x cakes initially How many cakes would baker still have?
The baker's friend bought 137 cakes from him. 

This means that the baker sold 137 cakes. 

If the baker sold 137 cakes, he would have 169 - 137 = 32 cakes left.