A town government has pylons that are in the shape of a square prism with a pyramid attached to one base. What is the surface area of a polygon, in square inches?