A rectangle is three times as long as it is wide and has the same perimeter as a square whose area is 1 square foot
larger than that of the rectangle. What are the dimensions of both the rectangle and the square?
Find the dimensions of the rectangle.