Perimeter is the total distance around the outside of a shape — like walking around the boundary of a park.
Rectangle:
Perimeter = 2 x (Length + Width)
P = 2 x (l + w)
Why? A rectangle has 2 equal lengths and 2 equal widths.
Square:
All four sides are equal.
Perimeter = 4 x side (P = 4s)
To find a missing side: rearrange the formula. E.g. if P = 36 and l = 10, then 36 = 2(10+w), so w = 8.