Let the width be w. Therefore we can right the length as w+2=l. We know the formula for perimeter is 2w + 2l = P. We can fill this formula in to help solve this problem with the pieces we have.
2w+2(w+2)=24
2w+2w+4=24
4w=20
w=5
So, we now know the width of the room. Next, lets plug that into the perimeter equation again and solve for the length now.
2(5) + 2l = 24
10 + 2l = 24
2l = 14
l=7
So the width is 5m and the length is 7m.