It had been highlighted in the problem that the shape is indeed a square. Thus, we have for sides equal, since we are given with an expression for the first side, we can easily solve for the remaining sides such as below:
1st side=6(3X+8) + 32 +12X
2nd side=18X+48 +32+12X
3rd side=18x+80+12x
4th side=30x+80