Perimeter and dimensions of a rectangular enclosure