Who decided which books belong in the Bible, anyway?
The Church's answer is that the canon was discerned, not created at whim. It was by the apostolic Tradition that the Church discerned which writings are to be included in the list of the sacred books. That complete list is called the canon of Scripture. It includes 46 books for the Old Testament and 27 for the New, from Genesis through Revelation.
Catechism of the Catholic Church, §§ 120.
Read the teaching itself: The Canon of Scripture in the Catechism pages.