the length of a rectangle is one inch less than three times its width. if the perimeter of the rectangle is 118 inches, find the dimensions of the rectangle