The volume of a triangular prism is equal to the half of the product between the height of the triangle, its base and, length of the prism:

For the given prism
The base of the triangle is b=6ft
The height of the triangle is h=8ft
And the length of the prism is l=4ft
So you can calculate its volume as:

The volume of the triangular prism is 96ft³