I tried to put 2 braces, one at the top and one at the left, but I got an ugly effect. How to fit both braces with the array?
\documentclass[12pt]{report}
\begin{document}
\begin{equation}
lines \overbrace{\left\{\begin{array}{|r|r|r|r|r|}
\hline
4 & 6 & 5 & 7 & 9 \\
\hline
3 & 5 & 7 & 8 & 10 \\
\hline
1 & 3 & 9 & 10 & 12 \\
\hline
2 & 4 & 3 & 9 & 11 \\
\hline
\end{array}\right.}^{columns}
\end{equation}
\end{document}
\documentclass\[12pt\]{report}
is correct\documentclass[12pt]{report}
. Correcting this I obtain nice braces, only over on also consider left one ...