Problem
Let $f_1,f_2,\ldots, f_n$ be linear functionals on a vector space $X$. Show that there exist constants $\lambda_1,\ldots,\lambda_n$ satisfying $$f=\sum_{i=1}^n\lambda_i f_i$$ if and only if $\bigcap_{i=1}^n \ker f_i \subset \ker f$.
Attempt
If there exist constants $\lambda_1,\ldots,\lambda_n$ satisfying $$f=\sum_{i=1}^n\lambda_i f_i,$$ then $x\in \bigcap_{i=1}^n \ker f_i$ gives $\sum_{i=1}^n\lambda_i f_i=0$. On the other hand, define $$V=\{y\in\mathbb{R}^n:\exists x\in X \textrm{ such that } y=\left(f_1(x),\ldots,f_n(x)\right)\},$$ and $g:V \rightarrow \mathbb{R}$ by $$g\left(\left(f_1(x),\ldots,f_n(x)\right)\right)=f(x).$$ $V$ is seen to be a vector subspace of $\mathbb{R}^n$. If $\left(f_1(x),\ldots,f_n(x)\right)=\left(f_1(y),\ldots,f_n(y)\right)$ Then $f_i(x-y)=0$ so $(x-y) \in \ker f_i$ for all $i$. By assumption, $(x-y)\in \ker f$ so $f(x)=f(y)$. Hence $g$ is well defined. Clearly $g$ is linear. Denote by $g^*$ a linear extention of $g$ to all of $\mathbb{R}^n$. Then there exist $\lambda_1,\ldots,\lambda_n$ such that $g^*(z_1,\ldots,z_n)=\sum_{i=1}^n\lambda_i z_i$. $\ ^{(1)}$ In particular, $(z_1,\ldots,z_n)=(f_1(x),\ldots,f_n(x))$ give the desired result.
Question
I am having trouble justifying $(1)$. That is, why can we say $g^*(z_1,\ldots z_n)=\sum_{i=1}^n \lambda_i z_i$?