jesse, in The first sentence:
"Me queda bien" The word "queda" means or is refered to the verb "to wear something", in this case could be a shoes, dress, shirt, hat,etc.
The second part "Está bien, me quedo con ellos", The word "quedo" is refered or asociated with The verb "to buy". Is similar to say "i will take them".
I hope you can understand me
regards