What two dimensional shape is created by slicing a rectangular pyramid perpendicular to the base through the apex a rectangle or triangle

rectangle