6 & # 178; + X & # 178; = (18-x) &# 178; solve the equation Write clearly step by step

6 & # 178; + X & # 178; = (18-x) &# 178; solve the equation Write clearly step by step

6²+x²=(18-x)²
36+x²=324-36x+x²
x²-x²+36x=324-36
36x=288
x=8