The perimeter of an equilateral triangle is 6 cm more than the perimeter of a square. The length of a side of the square is 3 cm less than the length of a side of the equilateral triangle. Find the area of the square.