The perimeter of each square in the given figure is 16 cm. Find the perimeter of the whole figure given below.
If the perimeter of the figure given is 57 cm, find the perimeter of the triangle in the figure.