The perimeter of an equilateral triangle is 9 inches more then the perimeter of a square, and side of the triangle is 6 inches longer then the side of the square. Find the side triangle.