Summary
They talked about helping people everywhere and working together for a better world.
India's leader, Narendra Modi, suggested a special plan to keep ideas moving even when leaders change.
He also wants all countries to have a fair say, not just the biggest ones.