I seached for endosymbiotic theory in Wiki and I found this about endosymbiotic theory:
Symbiogenesis, or endosymbiotic theory, is an evolutionary theory which explains the origin of eukaryotic cells from prokaryotes. It states that several key organelles of eukaryotes originated as symbiosis between separate single-celled organisms. According to this theory, mitochondria and plastids (e.g. chloroplasts), and possibly other organelles, represent formerly free-living bacteria that were taken inside another cell as an endosymbiont, around 1.5 billion years ago.
But I couldn't find any answer for my question, so I decided to ask:
According to this theory and differences between inner and outer mitochondria and plastid membranes, which membranes (outer or inner membranes) of mitochondria and plastids (e.g. chloroplasts) relate to bacteria?
And why do mitochondria need to have a double membrane?