Relationship between rectangles and perimeter