Nuclear magnetic relaxation in a system consisting of a polymer in a matrix of monomer