World leaders and business titans gathered in South Korea this week to hash out issues from tariffs and AI to disputed history and regional security.