A rectangle is divided into smaller rectangles as shown. Several of the small rectangles are labelled with their perimeter. Find the perimeter of the large rectangle.