If I give you, what is the slant height in a rectangular or square pyramid?

The slant height in a rectangular or square pyramid is the length of the line segment joining the apex of the pyramid to the midpoint of any one of the sides of the base.