The side of a square is x+8 metre and other side of the square is 3x-18 find the value of x .

x + 8 = 3x - 18

26 = 2x

13 = x