18 Then they put the priests and the Levites into their separate groups. Each group had a certain time to serve God in the Temple at Jerusalem as it is written in the Book of Moses.