The perimeter is the length of the outline of a shape. To find the perimeter of a rectangle or square you have to add the lengths of all the four sides. x is in this case the length of the rectangle while y is the width of the rectangle.
The perimeter, P, is:
P=x+x+y+y
P=2x+2y
P=2(x+y)