Interplay Of Superconductivity, Magnetism, And Density Waves In Rare-Earth Tritellurides And Iron-Based Superconducting Materials