If your choices are the following:
people who settled together in groups found it helpful to form colonies.
leaders saw the need to develop written laws to protect their settlements.
groups usually welcomed immigrants into their communities.
people developed representative leadership.
meeting basic needs of food, shelter, and safety were of primary concern.
Then the answer would be leaders saw the need to develop written laws to protect their settlements.