Answer:
The answer is working memory.
Explanation:
Working memory is a memory system responsible for holding short-term information which is available for manipulation. In the example, Lily could manipulate the visual information of Carmelita's notebook, and in turn remember to take her own.
Other tasks which involve working memory are using a mathematical formula to solve a problem or repairing a device after reading a manual.