Show that the linear system $AX=B$ has a solution if and only if the rank of $A$ equals the rank of the extended matrix $(AB)$.
I started by saying that $AX=a_1 x_1+a_2 x_2+\cdots+a_n x_n=B$, where $a_{i}$ represent the columns of $A$ and $x_i$ represent the coefficients of the system. It then follows that $B$ is a linear combination of the columns of $A$, so that $B \in C(A)$. Now I don't know how to go on further...