I assume you are referring to the rows and columns of the matrices/vectors which is referred to as the format of a matrix.
As far as I can see you are trying to determine the linear regression for a data set $X$ and a weight vector $\beta$ normally. We use the data set $\tilde{X}$ and add an additional column to the left which only contains one entry. This manipulation is done to get a vector equation.
$$\mathbf{y}=\mathbf{X\beta}+\mathbf{\varepsilon}$$
Please note that $\beta$ and $\varepsilon$ are vectors it is a strange behavior of LaTeX/MathJax. The output vector $y$ has the format $n\times 1$ containing the outputs/predictions for each observation. If we have $p$ predictors then $\mathbf{X}$ has the format $n \times (p+1)$ (note that we have an additional column for the added column) and $\beta$ has the format $(p+1)\times 1$. The error has the format $n\times 1$.
Can you determine the format of $\mathbf{X}^T\mathbf{X}$ as $(p+1) \times (p+1)$.