The rectangle ABCD was divided into 9 small rectangles, and some rectangles have their perimeter inside it. The perimeter of rectangle ABCD is 54 cm. What is the perimeter of the gray rectangle?
Hint:
Set the length of the grey rectangle to X
Set the width of the grey rectangle to Y.
Use simple algebra to find the other rectangle's width and length in terms of X and Y.
Then solve an equation.