The answer to the given question is a concept called a scheme.
In psychology, a scheme refers to a mental representation of the world that we conceive from our experiences with the world. This concept was first popularized by Jean Piaget, who develops the theory of cognitive development stages. He believes that children use series of schemes to understand the world better.