The lengths in the diagram are in centimetres. The square (2x,2x) and the rectangle (10, x+8) have perimeters of the same length.
a. Write an equation to show this.
b. Solve the equation.
c. Find the length of the rectangle.