[noun] + というと [sentence (plain)] + というと
The expression と言うと (というと) is used to pick up on something just mentioned and respond to it, either by associating it with something else, asking for clarification, or stating what typically comes to mind. It has several related but distinct uses.
When someone brings up a topic, というと can be used to express what immediately comes to mind or what is commonly associated with that topic.
This usage often conveys a stereotypical or automatic association – "the first thing that comes to mind when X is mentioned."
というと can also be used to repeat or echo what someone said in order to seek clarification or confirm understanding. In this case, it functions like "you mean…?" or "when you say…?"
というと is also used when hearing something reminds you of a related topic or memory, similar to "now that you mention it" or "that reminds me."