Set up an algebraic equation and then solve the following problem.
The width of a rectangle is 7 feet less than its length. If the area of the rectangle is 170 square feet, then find the length and width.