Consider this sentence: Anna did a lot better than her good friend Lucy on the test because *she* had studied so hard.

Are "she" and "Anna" the same?
yes