As the given figure can be considered as two rectangles,
Consider the first rectangle,
The length is, 9-2 = 7 cm,
The width is, 10-6 = 4 cm.
Therefore, the perimeter is,

For the second rectangle,

Therefore, the total perimeter is,
22 cm + 24 cm = 46 cm.