Achieving optimal agreements