Solution:
The chieftains live in the forests which serve them as ramparts, inside which are their cattle and their crops.
The chieftains live in the forests which serve them as [[1]], inside which are their cattle and their crops.
The chieftains live in the forests which serve them as ramparts, inside which are their cattle and their crops.