ok, lets say the length and width of the photo is l and w.
then, \(2\left(l+w\right)=23\)
and if the frame is 1 inch, \(\left(l+1+1\right)\left(w+1+1\right)=58.5\)
then we just solve the system of equations and get l = 7 and w = 4.5 so the area is 31.5