TT #65 · Parshas Vayeishev · Passuk 40:16
When the chief baker saw how favorably he had interpreted, he said to Yosef, “In my dream, similarly, there were three openwork baskets on my head.
Torah Temimah points to Berachos 55b.
“For he had interpreted well” — from where did he know? R’ Elazar said: this teaches that each one was shown his own dream and the interpretation of his fellow’s dream.
Category C — Contextual / narrative explanation.
Method — Rabbi Elazar explains that each official was shown both his own dream and the interpretation of the other’s dream. This explains how the chief baker knew that Yosef’s interpretation of the cupbearer’s dream was favorable.
Textual trigger — “Va-yar sar ha-ofim ki tov patar” in Bereishis 40:16; the Gemara asks how the baker knew the interpretation was good and explains that each had seen the other’s dream and its interpretation.
Each prisoner was shown both dreams; that is how the baker could judge that Yosef had interpreted well.