The length of a rectangle is 2 yards longer than its width. If the perimeter of the rectangle is 64 yards, find its length and width.