Which of these shapes have rectangular cross sections when they are cut perpendicular to the base? Check all that apply.

rectangular prism
triangular prism
cylinder
cone
square pyramid
triangular pyramid