A rectangle has a length of x + 2, a width of 7, and a perimeter of 32, what is the value of x?