Sentence: James asked Robert for a favor but he refused.
 Reason: The 'he' refers to robert because James was asking therefore the "he" refusing must be Robert. 
 Question: Is the above reasoning correct or wrong? 