Answer:
First case: commensalism; Second case: mutualism
Explanation:
Commensalism is a type of symbiotic biological relationship between organisms belonging to two different species, in which one member gains benefits from the other member, while the other member is not harmed or benefited.
Whereas, mutualism is a type of symbiotic biological relationship between organisms belonging to two different species, in which both the members mutually benefit from each other.
Therefore, the interaction between clown fish and sea anemone, when the clown fish hide under the tentacles of sea anemones to gain protection, is known as commensalism.
Whereas, the interaction between clown fish and sea anemone, when the clown fish also gets rid of some predators of the sea anemone, is known as mutualism.