She jokingly tells him that he has a better chance of winning the student elections, which he sees as a challenge and decides to register.
He has a better chance of winning the student elections. This is what she tells him. He sees as a challenge. He decides to register the student elections.