Using photosynthesis. They convert sunlight into energy. They eat algae.
They use photosynthesis as with all plants