first form of lilfe is said to be prokaryotes which is divided into bacteria and archaea..as prokaryotes dont have chloroplasts which performs photosynthesis then how does bacteria performed photosyntesis

Not all bacteria contain chloroplasts. This article tells you more about chloroplasts:
https://en.wikipedia.org/wiki/Chloroplast