A school organized a knockout football competition with 23 teams. What was the least number of matches they needed to play to decide the winner?
a) 22
b) 23
c) 24
d) 25