l: The length of the base of the prism
w: The width of the base of the prism
h: The height of the prism
S: The surface area of the prism
To determine the formula for the surface area of any pyramid, find the sum of the areas of every face.