A 24 liters of cough syrup and water mixture contains cough syrup and water in the ratio 3 : 5. What liters of the mixture should be taken out and replaced with pure cough syrup so that the final mixture contains syrup and water in equal proportions?