A rectangle is drawn so that the width is 3 feet shorter than the length. the area of the rectangle is 40 square feet. find the length of the rectangle.