A rectangle has a perimeter of 38 feet. The length is 1 foot less than 3 times the
width. Find the dimensions of the rectangle.