How do you find volume of a triangular prism?

volume=1/2*length*width*height.