A wire is in the shape of a rectangle. Its length is 40 cm and breadth is 22 cm

A wire is in the shape of a rectangle. Its length is 40 cm and breadth is 22 cm. If the same wire is rebent in the shape of a square, what will be the measure of each side? Also find which shape encloses more area?

image