Length= 40cm
Breadth= 22cm
Perimeter of the rectangle= Length of the wire
=2(l+b)= 2(40cm + 22cm)
=2\times62cm = 124cm
Now, the wire is rebent into a square.
Perimeter= 124cm
4\times side=124
Therefore side= \frac{124}{4}cm= 31cm
So, the measure of each side= 31cm
Area of rectangular shape= l\times b
=40cm\times22cm
=880cm^2
Area of a square shape= \left(Side\right)^2
=\left(31\right)^2=961cm^2
Since 961cm^2\ >\ 880cm^2
Hence, the square encloses more area.