Total apples = 6. Bag A has 2 apples.
Bag B = 6 - 2 = 4 apples.

Final Answer: 4