Prove the following theorem:
Let $V$ be a linear space and $D$ a convex set. Let $x_1,\ldots,x_k$ be $k$ points in $D$. Let $a_1,\ldots,a_k$ be non-negative scalars such that $\sum\limits_{i=1}^n a_i=1$. Then the so called convex combination $\sum\limits_{i=1}^k a_ix_i$ is an element of $D$.
I tried looking up the definition of convex sets which is that if you draw a line between two points in the set that the entire line should line within the set and that this should hold for all points in the set. For the rest, since I am entirely new to proofs like these, I dont have a clue how to proceed. Can someone please help me? It would be highly appreciated.