So we need a few formulas to start.

The area of a rectangle is

We know the area

We also know that the length is five more than the width so

and that the width is W.

Now we evaluate the area formula to get

So now using the zero product priciple we set each factor equal to zero to get

and

Since we are talking about the width of a frame the negative solution doesn't make sense so we are left with the width of the frame is 7 in.

Good luck.