The length of each side of a square
is 2 inches less than the length of the side of
an equilateral triangle. The perimeters of the
two shapes are the same. Find the lengths of
the sides of each figure.