We have a triangular prism.
The volume of a triangular prism is given by,
[tex]V=\frac{1}{2}*b*h*l[/tex]where,
b is the base,
h is the height, and,
l is the length,
for this problem:
b = 3 yd
h = 2 yd
l = 6 yd
Therefore, the volume is,
[tex]V=\frac{1}{2}*3*2*6=18[/tex]Thus, the answer is 18 cubic yards