The scale is balanced. This is the case if the distances * weights are the same on both sides of the scale: (A + B) * weigth 1 + B * weight 2 = C * weigth 3 + (C + D) * weight 4.
(100 + ?) * 10 + ? * 4 = 200 * 6 + (200 + 140) * 6.
==> (100 + ?) * 10 + ? * 4 = 3240.
==> Write without parentheses: 100 * 10 + ? * 10 + ? * 4 = 3240.
==> Simplify: ? * 14 + 1000 = 3240.
==> ? * 14 = 3240 - 1000.
==> ? = 2240 / 14.
==> ? = 160