Question: How were all the books in the Bible collected to make the Bible? Who decided which books would make up the Bible and how did they decide which ones to include?
Answer: I found this site (bible-researcher.com) to be quite acceptable as an explanation of the development of what we call the canon of Scripture. There may be more than you want to read here, but I would suggest that you at least read the Introduction to the Canon and Ancient Versions article. There are a number of helpful charts. There is an article further down by F. F. Bruce, who is considered a giant in New Testament studies.