How does the sentence end?

So
Available options:
A). Randy was confident because Randy forgot to study for the upcoming test and Robert studied.;
B). Robert was confident because Randy forgot to study for the upcoming test and Robert studied.;
B).