Most likely, there's a typo in the solutions you have (for one thing, the matrices shape are not coherent, and $\beta$ in the $c$ matrix is undefined).
For part a), $c$ should be $\{0,0,0\}$, so that you are testing $\beta_1 - \beta_2 = 0$ and $\beta_2 - \beta_3 = 0$ and $\beta_3 - \beta_4 = 0$, which is another way of writing $\beta_1 = \beta_2 = \beta_3 = \beta_4$
For part b), you are testing $\beta_1 - \beta_2 = 0$ and $\beta_3 - \beta_4 = 0$
EDIT : for further explanation, if you do the matrix product Tβ, for instance in case a), you have
$\beta_0 \times 0+\beta_1 \times 1+\beta_2 \times (−1)+\beta_3 \times0+\beta_4 \times0$ for the first coefficient, then
$\beta_0 \times0+\beta_1 \times 0+\beta_2 \times 1+\beta_3 \times(−1)+\beta_4 \times0$ for the second coefficient, then
$\beta_0 \times0+\beta_1 \times 0+\beta_2 \times 0+\beta_3 \times1+\beta_4 \times(−1)$ for the last coefficient