The torque (turning force) about any point at distance x from a mass is its weight times that distance: Wx. The total torque of a group of mass is the total of the torques for each one. In particular, if x is measured from the far left, the torque due to the first 6N weight is 6(x- .5), due to the next 10N weight, 10(x- 3), due to the next weight, 2(x- 10), and the last, 8(x- 5), so the total torque is
6(x- .5)+ 10(x- 3)+ 2(x- 10)+ 8(x- 5). in order that the this balance, the total torque must be 0. Set that equal to 0 and solve for x.
Note that, because the pivot applies a force vertically, only the horizontal distance is important. (Which is pretty much implied by the way to problem is given: they do not tell you the height of that "up" section on the right.)