How does the sentence end?

So 
Options are:
[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].