The perimeter of a rectangle is given by the formula:

Where l is the length of the rectangle and w is its width. For this rectangle we know two expressions, one of the length and the other for the width:

If we substitute these equations into the formula of the perimeter, we get:

Simplifying we get:

replacing the value of the perimeter (104) and then solving for y we get:

Now that we know that y equals 5, let's replace it into the formulas of the length and width:

Then, the length equals 41 inches and the width equals 11 inches