“how to problem solve” and “use logic” are, I believe, myths. When you teach someone to implement quicksort, all you’ve done is taught them to implement quicksort. Classroom based lectures and rote memorization do not impart any kind of broader “problem-solving” ability. This is an ex post rationalization by the perpetrators of the education system to justify their own existence. I place the value of what they do very low
It’s called recall or something. If you are trying to find something you saw before but can’t remember, it remembers for you.