a: The length of an apothem of the base of the pyramid
n: The number of sides of the base of the pyramid
s: The length of a side of the base of the pyramid
h: The height of the pyramid
S: The surface area of the pyramid
To determine the formula for the surface area of any pyramid, find the sum of the areas of every face.