The length of a rectangle is greater than the length of side of a square by 10 cm and its breadth is less by 6 cm than the side of the square. What is the perimeter of the rectangle if the areas of the square and the rectangle are equal?