A frame around a rectangular family portrait has a perimeter of 102 inches. The length of the frame is 9 inches less than twice the width. Find the length and width of the frame.