Sentence: James asked Robert for a favor but he was refused.
 Reason: The 'he' refers to james because James is asking Robert, so Robert was replying. 
 Question: Is the above reasoning correct or wrong? 