The perimeter of each square in the given figure is 16 cm. Find the perimeter of the whole figure given below.