The most accurate response is:
Both developed out of efforts to overcome shared problems.
This reflects the idea that both the formation of states and the creation of supranational organizations often arise in response to common challenges, such as security, trade, and governance, among groups of people or nations.