The right incentives can turn conflicts into cooperation.