When creating the formula of a surface area of a triangle pyramid ( S A = 1/2 an + 3 ( 1/2lb)), what formula is being used?

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