The Old Testament has 17 Historical, 5 Poetical, and 17 Prophetic books in it. These are grouped as follows:
17 Historical Books
Genesis, Exodus, Leviticus, Numbers, Deuteronomy, Joshua, Judges, Ruth, 1 Samuel, 2 Samuel, 1 Kings, 2 Kings, 1 Chronicles, 2 Chronicles, Ezra, Nehemiah, and Esther.
5 Poetical Books
Job, Psalms, Proverbs, Ecclesiastes, and Song of Solomon,
17 Prophetic Books
Isaiah, Jeremiah, Lamentations, Ezekiel, Daniel, Hosea, Joel, Amos, Obadiah, Jonah, Micah, Nahum, Habakkuk, Zephaniah, Haggai, Zechariah, and Malachi.
The New Testament has 4 Gospels, Acts, 21 Epistles, and Revelation. Thse are grouped as shown below:
Matthew, Mark, Luke, and John,
Romans, 1 Corinthians, 2 Corinthians, Galatians, Ephesians, Philippians, Colossians, 1 Thessalonians, 2 Thessalonians, 1 Timothy, 2 Timothy, Titus, Philemon, Hebrews, James, 1 Peter, 2 Peter, 1 John, 2 John, 3 John, and Jude.