4 novels can be selected out of 5 in
ways.
2 biographies can be selected out of 4 in
ways.
Number of ways of arranging novels and biographies =
= 30
After selecting any 6 books (4 novels and 2 biographies) in one of the 30 ways, they can be arranged on the shelf in 6! = 720 ways.
By the Counting Principle, the total number of arrangements = 30 x 720 = 21600