Perimeter and area of rectangles