Q: .

Joe paid the detective after *he* delivered the final report on the case.

Do "he" and "the detective" mean the same thing?
A: yes
Q: .

The sun was covered by a thick cloud all morning, but luckily, by the time the picnic started, *it* was gone.

Do "it" and "The sun" mean the same thing?
A: no
Q: .

I was trying to open the lock with the key , but someone had filled the keyhole with chewing gum, and I couldn't get *it* out.

Do "it" and "the key" mean the same thing?
A:
no