The priests were assigned their duties by clans, and the Levites twenty years of age or older were assigned theirs by work groups.