With regard to memory, think of it like this: from the innumerable events that have happened in a person’s past, that person chooses only those events that are compatible with the present goals, gives meaning to them and turns them into memories. And conversely, events that run counter to the present goals are erased.