How did establishing colonies in Africa help European countries solve social problems in Europe?

Colonies created new markets and customers for manufactured goods.
Colonies provided land where Europeans could live permanently.
Colonies allowed more people to become European citizens.
Colonies provided access to factories to manufacture goods.