Making a solution with two solutes
You need 15 g HCl and 6 g NaI per 100 g of the solution. Treating 31.45% (I don't know much about practice) as exact, there is 15 g HCl in 15 g / 31.45% = 47.69 g of your muriatic acid. So you need 6 g of sodium iodide, 47.69 g of your muriatic acid and the rest, i.e. 46.31 g, of pure water per 100 g of the solution.