Use row and column matrices of ones to extract totals
The data matrix \(Q\) gives the numbers of practice sessions completed by several ensembles, with one row for each ensemble and one column for each section
Row order: Senior band, Jazz group. Column order: Repertoire, Technique
\[Q = \begin{bmatrix} 11 & 4 \\ 3 & 3 \end{bmatrix}\]
The following row and column matrices of 1s are available
\[R = \begin{bmatrix} 1 & 1 \end{bmatrix}, \qquad C = \begin{bmatrix} 1 \\ 1 \end{bmatrix}\]