The correct response is:
They used to be free-living prokaryotes that functioned as unicellular organisms.
Mitochondria and chloroplasts have their own DNA because they are thought to have originated from free-living prokaryotic organisms that were engulfed by a primitive eukaryotic cell in a symbiotic relationship (endosymbiotic theory). This ancestral link is reflected in their own DNA, which is similar to bacterial DNA.