Let the breadth of rectangle be .
According to the question:
Side of the square
Length of the rectangle
It is given that the areas of the rectangle and square are same.
Thus, the breadth of the rectangle is and length is . Also, the side of the square is