How did the the 66 books of the Bible get collected together? (Pastor Jacob Kelso)

How did the the 66 books of the Bible get collected together? (Pastor Jacob Kelso)