The correct response is:
They used to be free-living prokaryotes that functioned as unicellular organisms.
This is based on the endosymbiotic theory, which suggests that mitochondria and chloroplasts are derived from ancient prokaryotic cells that were engulfed by ancestral eukaryotic cells. As a result, they retained some of their own DNA necessary for their functions.