The volume ot the given triangular prims is equal to the product of the triangular base and the lenght of 8 meters. The area of the triangular base (A) is given by
Then, the volume of our triangular prisms is given by
Therefore, the volume is equal to 24 cubic meters.