A prism is a solid with the same cross-section all along its length — slice it anywhere across and you always get the same flat shape. Because every slice is identical, the volume is simply that one cross-section's area, repeated all the way along:
A cuboid (a box) is a prism whose cross-section is a rectangle. Its
cross-section has area
A cylinder is a prism whose cross-section is a circle. The
circle of radius
Step through the sketch: first a cuboid (rectangular cross-section), then a cylinder (circular cross-section). Each is a flat drawing of a 3D solid.