Pair the figures with their perimeter.
Three squares are joined together as shown in the given figure. Their sides are 4 cm, 10 cm and 3 cm. Find the perimeter of the figure.