Suppose that the length of a certain rectangle is four centimeters more than three times its width. If the area of the rectangle is 39 square centimeters, find its length and width.