see when u draw the free body diagram and write the condition of equilibrium u will get the equation

solving this u will get the value
x = 26.79 cm
and this is the required answer.
PLZ... VOTE IF U UNDERSTOOD ME OR U R WELCOME TO ASK FOR MORE CLARIFICATION.