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

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