The perimeter of a figure is the boundary of its surface, in this case, it is:
I will edit the image to help you understand
This is quite improvised but it'll help you to understand how the sides are related.
So, continuing with the calculation:
So, the answer is: Perimeter = 7x+8