An illustration of a regular pyramid with a square base and labels on lateral edge, slant height, altitude,…