system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5. In mangroves how do plants filter out the salt water and what do they do with the salt?
gpt
It depends on the mangrove. 
Some mangroves use osmotic pressure in their root systems to limit the salts that are absorbed into the plant. Red mangroves do this-they are called excluders 

Other mangroves (like the black and the white mangroves) have glands that will collect all the salt and extrude it. These are called extruders. For a black mangrove, the glands are on the back of the leaves...if you turn over a black mangrove leaf, it’s encrusted with salt...

BUT the red mangrove can ALSO extrude using “sacrificial leaves”. The tree will funnel what salt IS absorbed into one leaf per branch. That leaf will die because of the salt and then when it dies and falls, the tree will use a different leaf while the first one grows back. 

Red mangroves are special...