Step-by-step explanation:
Given,
Math books = 4, History books = 3, Chemistry books = 3 and
Computer science books = 2
To find, the total number of ways = ?
∴ The total number of ways = 4! × 3! × 3! × 2!
= 24 × 6 × 6 × 2
= 24 × 72
= 1728 ways
∴ The total number of ways = 1728 ways