When creating the formula for surface area of a triangular pyramid, what formula is being used?

The formula being used to find the surface area of a triangular pyramid is:

Surface Area = Base Area + lateral Area

The lateral area can be calculated using the formula:

Lateral Area = 1/2 * Perimeter of the Base * Slant Height