The difference between the length and width of a rectangle is 6, and their sum is 34. What are the length and width of the rectangle? Let the length be x and the width be y .