A square has sides of length of 3x cm.A rectangle is 2x cm by (x+7)cm.The area of the square is twice the area in f rectangle.Find the dimensions of each figure