We assume that the prism being referred in this item may be any prism. For our case, we take both prisms to be rectangular prism so that the volume is equal to,
V = L x W x H
The dimensions of the prisms,
(1) 10 cm x 10 cm x 24 cm
(2) 5 cm x 20 cm x 24 cm