2 A team with five members is training to take part in a quiz. The team members, Abby, Bob, Cait, Drew and Ellie, attempted sample questions on each of the five topics and their scores are given in the table.
| Topic 1 | Topic 2 | Topic 3 | Topic 4 | Topic 5 |
| Abby | 27 | 29 | 25 | 35 | 31 |
| Bob | 33 | 22 | 17 | 29 | 29 |
| Cait | 23 | 29 | 25 | 33 | 21 |
| Drew | 22 | 29 | 29 | 27 | 31 |
| Ellie | 27 | 27 | 19 | 21 | 27 |
For the actual quiz, each topic must be allocated to exactly one of the team members. The maximum total score for the sample questions is to be used to allocate the different topics to the team members.
- Explain why the Hungarian algorithm may be used if each number, \(x\), in the table is replaced by \(35 - x\).
- Form a new table by subtracting each number in the table above from 35 . Hence show that, by reducing rows first then columns, the resulting table of values is as below, stating the values of the constants \(p\) and \(q\).
| 8 | 6 | 8 | 0 | 4 |
| 0 | 11 | \(p\) | 4 | 4 |
| 10 | 4 | 6 | 0 | 12 |
| \(q\) | 2 | 0 | 4 | 0 |
| 0 | 0 | 6 | 6 | 0 |
- Show that the zeros in the table in part (b) can be covered with two horizontal and two vertical lines. Hence use the Hungarian algorithm to reduce the table to a form where five lines are needed to cover the zeros.
- Hence find the possible allocations of topics to the five team members so that the total score for the sample questions is maximised.
- State the value of this maximum total score.