This text is missing some spaces, please add them: Theothergroupshadpermanenthabitationsandengagedinfarmingastheirmainlivelihood.
The other groups had permanent habitations and engaged in farming as their main livelihood.