First, observe that N+P is a subgroup of M. Any element of N+P is already an element of M, and since R-action on N+P is inherited from M, it is sufficient to make N+P into a module, provided that closure holds.
Let n∈N and p∈P. For an arbitrary r∈R, consider r(n+p)=rn+rp. Since N is a submodule, rn∈N. Similarly, rp∈P. This demonstrates that rn+rp∈N+P, as required.
Similarly, for N∩P we only need to check closure. Let u∈N∩P and take an arbitrary r∈R. Since u∈N, ru∈N as well. Similarly, ru∈P. So N∩P is a submodule.
Let K=N∩P and consider the map φ:(N+P)→P/K defined as n+p↦p+K. It is clearly a surjective homomorphism. So im(φ)=P/K and ker(φ)=N.
Let’s check that φ is well-defined. Let n1+p1=n2+p2. Note that n1−n2=p1−p2 and since n1−n2∈N and p1−p2∈P, we know that this difference lives in K.