The correct response is:
They used to be free-living prokaryotes that functioned as unicellular organisms.
Mitochondria and chloroplasts are believed to have originated from free-living prokaryotic organisms that were engulfed by ancestral eukaryotic cells in a symbiotic relationship. This endosymbiotic theory explains why these organelles have their own DNA, which is similar to bacterial DNA and essential for their functions within the cell.