A triangular prism has a height of 9 inches. the triangular base has a base of 3 inches and a height of 8 inches. find the volume of the prism.