I am trying to show that $R$ is semisimple if and only if every R module is projective. What I know is that if $R$ is semisimple then every $R$ module $M$ is semisimple which implies $M$ can be expressed as a direct sum of simple modules i.e $R=\sum_{i\in I} Ra_i$ for some $a_i\in M$ then I am not sure how to use this to deduce $M$ is projective. I also know that $R$ is artinian but I don't know if this is relevant. There is already an answer to this question but it involved advanced techinques I am not familiar with.
Can anyone show me an easy way to see this
Thanks in advance