Given data:
The given figure is shown.
The perimeter of the given figure is,
Thus, the perimeter of the given shape is 5x+2y+z.