.
The problem can be easily solved MENTALLY.
Since the frame is of uniform width, the difference of exterior dimensions of the frame is the same as the difference of dimensions
of the picture, i.e. 10 - 8 = 2 inches.
So, to solve the problem, you need to decompose the number of 224 into the product of two factors with the difference of 2 between them. It is
224 = 225 - 1 = = (15-1)*(15+1) = 14*16.
From this decomposition, 14 = 8 + 2w and hence w = = 3 inches.
Solved.
------------
Consider it as my Saturday entertainment gift to you.