A girl bought x kg of green apples and 3 kg of red apples. What was the total mass of all the apples she bought