A rectangle has a length of (x+10) centimeters and a width of x centimeters. If the perimeter is 32 centimeters, what is the length of the rectangle?