PASCAL 2024 Problem 21

A 3 \times 3 table starts with every entry equal to 0 and is modified using the following steps:

(i) adding 1 to all three numbers in any row;
(ii) adding 2 to all three numbers in any column.

After step (i) has been used a total of a times and step (ii) has been used a total of b times, the table appears as shown.

\begin{array}{|l|l|l|} \hline 7 & 1 & 5 \\ \hline 9 & 3 & 7 \\ \hline 8 & 2 & 6 \\ \hline \end{array}

What is the value of a+b ?