it can be in both
Step-by-step explanation:
In eukaryotic plants, photosyntesis takes place within the chloroplastes, and rispiration in the mitocondria. In prokaryotes such us bacteria, it is not necessary to have specific organells devoted to these function as, again, the cells are so small.