Malaya purchased 8kg and 400 grams of sugar, 10 kg of rice, 5 kg of beans, and a half kilo of oil in a grocery store. How many grams did Malaya carry?

help me please with solution ty​