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.
(180 + ?) * 6 + ? * 4 = 180 * 6 + (180 + 120) * 6.
==> (180 + ?) * 6 + ? * 4 = 2880.
==> Write without parentheses: 180 * 6 + ? * 6 + ? * 4 = 2880.
==> Simplify: ? * 10 + 1080 = 2880.
==> ? * 10 = 2880 - 1080.
==> ? = 1800 / 10.
==> ? = 180