The length of a rectangle is 4 inches more than thrice its width and perimeter is 32 inches. What is the length and width of the rectangle