A square has sides of length 4xcm. A rectangle is 4x by (x+6) cm. The
area of the square is triple the area of the rectangle. Find the dimensions of
each figure.​