I don't know the formulas for these problems
The Formula for Rectangular Prism is Length X Width X Height. And the Formula for the Triangular Prism is Base X Height or A x B x C x H.