The perimeter of a square is the total length of the four equal sides of the square.
If the side of a square is s, the perimeter of the square is
= 4 × s = 4 s
The perimeter of a rectangle is the total length of the two lengths and two widths of the rectangle.
If the length and width of a rectangle are l and w, then its perimeter
= 2(l + w) units