Less than 42 ft. of fencing was used to enclose a rectangular lot that has a length 12 ft. less than 3 times the width. If the width must be a whole number, find its greatest possible value.