We can find this by finding the perimeter of the square.
31×4= 124
Now the rectangle has two sets of parallel lines. There are two lines that are 22 cm, which comes out to 44 cm. We can subtract 44 from the perimeter to find the total of the length doubled.
124-44
80÷2
40
So, the length of the rectangle is 40 cm.