The perimeter of the base of a regular quadrilateral prism is 32 cm. The height of the prism is 2 times greater than the length of the base edge. Find the sum of all edges of the prism.