How to define a triangular prism volume, help!

does this post help?