Use of green's functions and relaxation time approximation in the study of phonon-phonon interactions in solids