Answer: functionalism
Step-by-step explanation:
Functionalism is a theory of mind which suggests that mental states like beliefs, pain, and desires that are constituted by their functional roles. It defines the causal relationships with other kinds of mental states. The functionalism also relates the sensory inputs and behavioral outputs. It is an alternative theory of mind and behaviorism.
The sensory inputs will give the information to the brain about the changes that occur in the environments and the behavioral outputs will gives response towards those changes. This way the functionalism will help the brain in adapting to the environment, observed through a behavioral response.