Perimeter involving rectangles and circles