Complex sentence: Foraging by the British gave the Americans the opportunities they needed to obtain vitally-needed supplies, such as fresh meat, flour, hay, wood, and livestock feed.
Split into simpler sentences: Foraging by the British gave the Americans the opportunities they needed. They needed to forage for supplies, such as fresh meat, flour, hay, wood, and livestock feed.