Distinguish between a primary and a secondary endosymbiosis. Which groups

Distinguish between a primary and a secondary endosymbiosis. Which groups of protists are derived from which form of endosymbiosis?