let the length and width of the rectangle be L and w
given:
w = L-5
Area = 150 sq inches
area of the rectangle = L*w
150 = L*(L-5)
150 = L squared -5l
L squared - 150 = 0
L squared - 15L+10L -150 = 0
L(L-15)+10(L-15)= 0
(L+10)(L-15)=0
(L+10 )= 0 or (L-15) = 0
L = -10 is not possible as there wont be negative lengths
so L = 15
there fore w = L - 5 = 15 - 5 = 10
L = 15 in and w = 10 in