Sentence: John was doing research in the library when he heard a man humming and  whistling. He was very annoyed.
 Reason: The 'He' refers to john because Jim was concentrating in the Library, the whistling and humming would be noise in a place that should be quiet. 
 Question: Is the above reasoning correct or wrong? 