Find the volume of each size stack by multiplying Length x width x height.
Once you have the volume for the 3 different stacks of books, add the together.
Bottom: 12 x 1 x 6 = 72 cubic inches per book x 2 = 144 cubic inches total.
Middle: 10 x 1 x 5 = 50 cubic inches per book x 2 = 100 cubic inches total.
Top: 7 x 0.5 x 4 = 14 cubic inches per book x 2 = 28 cubic inches total.
Total volume = 144 + 100 + 28 = 272 cubic inches.