how do bacterial plasmids relate to resistance and how do they relate to genetic engineering.

i am very stuck and i need help please