Side of Square = 5 cm, and
length of one side of rectangle = 5/2 = 2.5 cm
Let the length of the other side of the rectangle = B
As per the question:
Area of rectangle = Area of square
Length x Breadth = Side x Side
2.5 * B = 5 * 5
B = 25/2.5
B = 10 cm