The most likely reason the algae are able to help two-toed sloths survive is:
A. by allowing the sloths to blend in with the trees to hide from predators.
The greenish tint from the algae can help camouflage the sloths within their leafy environment, making it harder for predators to spot them.