It's unlikely we'd use either of them. We'd say "They need ten runs off twenty balls".
Note that your first suggestions does hold the same meaning and is grammatically correct.
The second suggestion has a different meaning. The "runs on the board" denote the number of runs the team has already made, not how many they need to win.
Student or Learner