well, the volume of that triangular prism will just be the area of the triangle times the length.
now, what's the area of that triangular face? well, let's say it has a base of "b" and a height of 3, whilst the prism has a length of 6, Check the picture below.