The infrared (IR) transmission, Raman Scattering, magnetic measurement, and electronic resistance measurement have been carried out in La2-xSrxCu0.94Mn0.06O4 and La2-xSrxCu0.94Ru0.06O4 systems. The superconductivity that is suppressed by impurity reappears as Sr content increases and forms a new relationship of the Meissner volume and Tconset versus Sr doping content. The Mn4+ doping system exhibits twice superconductive phase transitions while Ru4+ doping system exhibits only one superconductive phase transition. Coexistence and competition between superconductivity and magnetism are observed. We suggest that these surprising phenomena should be attributed to the compensation effect that is the electrons on high valence impurities are compensated by holes introduced through Sr doping. This compensation effect is confirmed by our IR spectra results. We also find that the compensation effect is strong for the localized 3d electrons of Mn4+ while very weak for the itinerant 4d electrons of Ru4+.