This question is pretty vague and confusing.
study suggests that photosynthetic eukaryotes may have emerged around 1.9 billion years ago in freshwater habitats. Eukaryotes are thought to have evolved the capacity for photosynthesis through a process called endosymbiosis, in which a protist host encapsulated a photosynthetic cyanobacterium.
The habitat with equal numbers of all the different species will have the higher diversity.