The area of the square and rectangle are equal. If the side of the square is 40 cm, and the breadth (width) of the rectangle is 25 cm, find the length and perimeter of the rectangle.