Volumes of prisms and cylinders