These are dissolved in water to form colourless solutions, and then mixed together. This mixing leads to a double displacement reaction, essentially resulting in the metals 'swapping' their places in the two compounds, producing lead (II) iodide, and potassium nitrate.