A rectangular picture frame has a perimeter of 58 inches. The heigt of the frame is 18 inches. What is the width of the frame?