FERMAT 2024 Problem 21

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

  1. adding 1 to all three numbers in any row;
  2. adding 2 to all three numbers in any column.

After step 1 has been used a total of a times and step 2 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?