The warring chiefs demanded guns in exchange for food.
To obtain food, they demanded guns.