[tex]\begin{gathered} \text{The volume of triangular prism =}\frac{1}{2}\times8\times4\times5 \\ =80\operatorname{cm}^3 \\ \text{The volume of rectangular prism=5}\times8\times6 \\ =240\operatorname{cm}^3 \end{gathered}[/tex][tex]\begin{gathered} \text{The total volume of prism =80+240} \\ V=320\operatorname{cm}^3 \end{gathered}[/tex]