The length of a rectangle is 9 feet longer than the width. if the perimeter is 78 ​feet, find the length and width of the rectangle.