To complete the sentence, you would choose "living a nomadic lifestyle." This is because animal herders in the Sahara adapted to their environment by moving with their herds in search of pasture and water sources. By living a nomadic lifestyle, they were able to sustain their herds and meet their needs in the harsh desert environment.