The king's officials did this task for him. Alternate translation: "The king's officials counted out for them" (See: [[rc://en/ta/man/translate/figs-metonymy]])
This can be stated in active form. Alternate translation: "Ashpenaz was to train these young men" (See: [[rc://en/ta/man/translate/figs-activepassive]])