Jamal is stacking boxes of books for the library book sale. Each box contains 24 books. If the stack of boxes is

in the shape of a square-based pyramid, how many books total will there be in a stack of 4 layers?

a. 30

b. 336

c. 28

d. 720