Answer is triangular prism.
Pyramids have only 1 bases so they cannot be the answer. Prisms on the other hand have 2 bases. Prism sides are rectangles no matter of the shape of the bases. In the text of the task it is required that bases are triangles therefore rectangular pyramid cannot be the answer.
Correct answer is triangular prism.