How do you calculate the volume of the triangular prism?

Its volume is: cross-section area times its length