#### Answer

The side length of the square is 18 inches. The side length of the triangle is 24 inches.

#### Work Step by Step

Let x represent the side of one square.
One side of the triangle can be represented by 6+x.
4x=3(6+x)
x=18
The side length of the square is 18 inches. The side length of the triangle is 24 inches.