When ionic product is greater than solubility product, the precipitation will occur.
Total volume after mixing is 10+5=15 mL.
[S2−]=1.0×10−19×1015=6.67×10−20M
[M2+]=515×0.04=0.0133M
Ionic product will be [M2+][S2−]=0.0133×6.67×10−20=8.87×10−22
In case of ZnS and CdS, the ionic product is greater than the solubility product.
Hence, ZnCl2 and CdCl2 solution will precipitate.