The length of a rectangle is 12 feet less than 6 times its width. If the perimeter of the rectangle is
312 feet, find the length and width of the rectangle.