I believe the answer is: fluid intelligence
fluid intelligence refers to the form of intelligence that allow us to utilize our logic to solve the problem or identify the patterns that we never encountered before.
For most people, fluid intelligence would peak when we enter middle age and would start to deteriorate from that point.