First let's calculate the volume of the cube. The formula to calculate the volume of a cube is
, a being the edge length of the cube. So we need to cube the value of a, which is 6. 6 cubed is 216 cubic units.
Now we need to calculate the volume of the triangular prism. The formula to calculate the volume of a cube is
, a being the side edge length of the prism, b being the height of the triangular side, and h being the base edge length of the triangular side, if that makes any sense (easier to explain visually). h and a are equal to the given a, which is 6 in this case. And b in the formula is equal to b in the given problem. So we substitute the values into the formula:
cubic units.
Now we take the sum of both of the figures:
