Relationships between rectangles and perimeter