A figure is formed by placing two squares as shown below. If the length of side of each square is 8 cm, then what is the perimeter of the figure?