Solve the problem by writing and solving an equation.
A rectangular picture frame has a perimeter of 58 inches. The height of
the frame is 18 inches. What is the width of the frame?