In a square ABCD,if AB=(3x8)cm and BC=(x+6)cm ,find the
Value of x. Also , find the length of each side of the square.