A bag contains 3 kg of apples, 4 kg of oranges, and 2 kg of bananas. If Peter adds some more apples to the bag such that the total weight of the bag becomes 12 kg, how many kilograms of apples did Peter add? Let's think step by step and output the final answer within \boxed{}.
user