Quicker solution to creating the pyramid extruded ramps

Why not just select the face extrude in x or y, snapping the vertices to the corner of the appropriate step? Its faster than all the pulling and moving of the top and bottom edges…