18 The priests were appointed to their companies. And the Levites were appointed to their groups. All of them served God at Jerusalem. They served him in keeping with what is written in the Scroll of Moses.