They got what they needed by bartering their livestock. 他们用家畜换来了需要的东西。
+with We used to barter with the guards to get cigarettes. 我们过去常常跟看守换取香烟。