Remember the formula for calculating volume is: Volume = Area by height. V = A X h.
For a triangle the area is calculated using the formula: Area = half of base by altitude. A = 0.5 X b X a.
So to calculate the volume of a triangular prism, the formula is: V = 0.5 X b X a X h