When creating the formula for surface area of a triangular pyramid (SA=1/2ab+3(1/2lb)) , what formula is being used?

The formula for the surface area of a triangular pyramid is being used.