Since one serving of cranberry juice contains 30g of sugar, evidently 30 servings will contain 30 x 30 grams of sugar which is 900 grams. Since there's 1000 grams in 1 kilogram, there's 900/1000, or 0.9 kilograms of sugar in 30 servings in cranberry juice.
Hope this helps :)