The volume of a prism is given by the product of its base area and its height. Since the two heights are the same, let's look at the bases.
The first prism has a rectangle for base, with sides 4 and 20 inches. This means that its area is [tex] 4\cdot 20 = 80 [/tex] squared inches.
The second prism has a right triangle for base, with legs 16 and 10 inches. This means that its area is
[tex] \cfrac{16\cdot 10}{2} = \cfrac{160}{2} = 80 [/tex] squared inches.
So, both prisms have the same height and the same base area. This means that they have the same volume as well, since in both cases it is given by
[tex] V = \text{base area} \times \text{height} = 80 \cdot 6 = 480 [/tex] inches cubed.