The correct response is:
Both developed out of efforts to overcome shared problems.
This indicates that both the formation of states and the creation of supranational organizations are processes that arise from the need to address common issues, such as security, economic cooperation, and governance, among groups of people or nations.