One of the Buddhist terms is “healing medicine.”
Just like the pharmacist in the title, someone who can see their worries and prescribe teachings is called a “Buddha.”
As for the question you asked, the story of Zhou Lihan Tokushita, also known as Pantaka, is famous, so it's probably easy to understand.
I became an apprentice to Buddha along with my excellent older brother, but since he was so foolish that I couldn't remember a single verse of teaching no matter how many months passed, I almost got kicked out of the cult by that older brother.
There, the Buddha appeared, handed over a piece of cloth, and ordered the cult to be cleaned along with the phrase “remove the dust and clean up the dirt.”
It's a story about how he realized that the dirt, dust, and grime that should be removed was dirt from his heart, and that it was Buddha's intention to remove it, and he completed his training.
Pantaka had difficulties with communication and memory, but the Buddha answered the question “How can Pantaka gain enlightenment?”
In addition to the teachable side's precept of “do what you are taught with all your heart,”
It's also a lesson on the teaching side of “giving medicine that the other party can swallow.”
Prescribing medicine that suits all of the handicaps in this world may be difficult for us ordinary people today, but the Buddha will surely accomplish it.
It is precisely because we believe so that we study the sutras, which are “Buddha's words.”