Each pot has w flowers in it. There are w flowers in total. How many pots are there in all?
There are 400 flowers in total. 

Each pot has w flowers in it. 

There are w pots in total. 

Therefore, w = 400 and there are 400 pots in total.