City A contains 20,000 people. One percent of these have one foot only and wear one shoe apiece. Half of the remaining people go barefoot, wearing no shoes at all, and the rest wear two shoes apiece.
In City B, 20 percent of the residents have one foot only and wear one shoe apiece. Of the remainder, half go barefoot and half wear two shoes apiece.
If 20,000 shoes are worn in City B, what is its population?