prompt: In a math contest, Riley and Ofelia are on one team. The team's final score is obtained by adding the scores of the students of the same team. Out of the 35 questions, Riley got 3 mistakes while Ofelia got 5 more than half the score of Riley. How many incorrect answers did their team get?
messages.content: In a math contest, Riley and Ofelia are on one team. The team's final score is obtained by adding the scores of the students of the same team. Out of the 35 questions, Riley got 3 mistakes while Ofelia got 5 more than half the score of Riley. How many incorrect answers did their team get?
messages.role: user
messages.content: Riley's score is 35 - 3 = <<35-3=32>>32.
  Half of Riley's score is 32/2 = <<32/2=16>>16.
  So Ofelia's score is 16 + 5 = <<16+5=21>>21.
  Hence, Ofelia got 35 - 21 = <<35-21=14>>14 incorrect answers.
  Therefore, their team got 3 + 14 = <<3+14=17>>17 incorrect answers.
  #### 17
messages.role: assistant