I am trying to prove that if $R$ is a commutative ring with unity and $P$ is a finitely generated projective $R$-Module, then Hom$_R(P,R)$ is projective.
The exercise gives a hint that says 'prove the $P$ is a direct summand of a free module of finite rank'.
If $S$ is the generating set for $P$, I know that we have a unique homomorphism $\phi$ from $F(S)$ to $P$ that is the identity on $S$ given by the universal propety of free modules. And I read in Dummit and Foote that this gives the following short exact sequence (they reference the universal property):
$0\rightarrow \ker(\phi)\rightarrow F(S) \overset{\phi}{\rightarrow} P\rightarrow 0$
But how do I know $\phi$ is surgective?
Also, and equaly impotant, how does lemma get used to solve the original problem?