Together with Zadok from the sons of Eleazar and Ahimelech from the sons of Ithamar, David divided them according to the assigned duties of their service.
Since more leaders were found among Eleazar's descendants than Ithamar's, they were divided [accordingly]: 16 heads of ancestral houses were from Eleazar's descendants, and eight [heads] of ancestral houses were from Ithamar's.
The secretary, Shemaiah son of Nethanel, a Levite, recorded them in the presence of the king and the officers, Zadok the priest, Ahimelech son of Abiathar, and the heads of families of the priests and the Levites. One ancestral house was taken for Eleazar, and then one for Ithamar.
These had their assigned duties for service when they entered the LORD's temple, according to their regulations, which they received from their ancestor Aaron, as the LORD God of Israel had commanded him.
They also cast lots the same way as their relatives, the sons of Aaron did in the presence of King David, Zadok, Ahimelech, and the heads of the families of the priests and Levites-- the family heads and their younger brothers alike.