A rectangle has a length of (x + 3) centimeters and a width of (½ x) centimeters. If the perimeter is 16 centimeters, what is the length of the rectangle. Write and solve an equation whose solution will give the length of the rectangle.