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 + 200) * 8 + 200 * 10 = 140 * 10 + (140 + ?) * 10.
==> 4400 = 1400 + (140 + ?) * 10.
==> 4400 - 1400 = (140 + ?) * 10.
==> 3000 = (140 + ?) * 10.
==> 3000 / 10 = (140 + ?).
==> (140 + ?) = 300.
==> ? = 300 - 140.
==> ? = 160