David, with the help of Zadok from Eleazar’s family and Ahimelech from Ithamar’s family, divided them according to their appointed duties.