If a two-dimensional shape created by slicing a rectangular pyramid parallel to the base is this going to be a rectangle or a triangle

The two-dimensional shape created by slicing a rectangular pyramid parallel to the base will be a rectangle. This is because a rectangular pyramid has a rectangular base, and when sliced parallel to the base, the resulting shape will also be a rectangle.