The length and width of a rectangle are consecutive integers. The perimeter of the rectangle is 42 centimeters. Find the length and width of the rectangle.