He put the keys ... the lock after taking it ... her bag.
- into, out of
- into, from
My approach: I am confused between out of and from.
Reason: Both have the same sense when it used in the sentence.
I also could not relate meaning from the meaning of the prepositions.
Can anyone guide me how to approach the problem?