The width of a rectangle is 3 inches less than its length. The area of the rectangle is 340 square inches. What are the length and width of the rectangle?