Peter managed to win the lottery and loaned money to Rick, but he will pay him back.

Who is "he" in this prior sentence?
Rick