s: The length of a side of the base (edge) of the cube
S: The surface area of the cube
A cube consists of six faces which are congruents squares, so the surface area of the cube is six times the area of one of the squares.
S = 6s2
a: The length of an apothem of the base of the prism
n: The number of sides of the base of the prism
s: The length of a side of the base of the prism
h: The height of the prism
S: The surface area of the prism