They don't tell each other the number they got.
This is a variation of the better known "daughter's age" problem:
P: hey! how have you been?
S: i got married and i have three daughters now
P: really? how old are they?
S: well, the product of their ages is 72, and the sum of their ages is the same as the number on that building over there..
P: right, ok ... oh wait ... hmm, i still don't know
S: oh sorry, the oldest one just started to play the piano
P: wonderful! my oldest is the same age!
(even though we don't know the number on the building, we can use the fact that the professor knows to figure out what the ages are. This problem should be solved the same way)