Let $\mathfrak{g}$ be a Lie algebra with the Cartan matrix $$ C=\left(\begin{array}{cc} 2 & -2\\ -1 & 2 \end{array}\right) $$
Question:
How can the number of roots of $\mathfrak{g}$ be determined from $C$?
How can it be shown that the dimension of $\mathfrak{g}$ is 10?
Note: this is an exam prep question.