Let
and
be, respectively, the length and the width of the rectangle.
If the length is 4 inches more than the width, we have

Moreover, the perimeter of a rectangle is given by

And we can substitute
to get

We know that the perimeter is 34 inches:

Which implies
