In water the following equilibrium would establish:
$$\ce{PbI2 (s) <=> Pb^2+ (aq) + 2I- (aq) \tag1}$$
$$\therefore \ K_\mathrm{sp} = [\ce{Pb^2+}][\ce{I-}]^2 = 8.7 \times 10^{−9} \tag2$$
Now, using equations $(1)$ and $(2)$, you can calculate $[\ce{Pb^2+}]$ and $[\ce{I-}]$ in water.
In $\ce{Pb(NO3)2}$ solution, following ions are present:
$$\ce{Pb(NO3)2 (aq) -> Pb^2+ (aq) + 2NO3- (aq) \tag3}$$
Thus, $\ce{Pb^2+}$ is present abundantly in the solution as the common ion (suppose $[\ce{Pb^2+}]$ is $\pu{0.1 M}$). Still, the equilibrium representing the equation $(1)$ should establish regardless of the presence of common ion. However, the equilibrium concentrations of $[\ce{Pb^2+}]$ and $[\ce{I-}]$ are very different than that of with pure water you calculated before. Yet, $K_\mathrm{sp}$ is still the same. So, you can again calculate $[\ce{I-}]$ using the equation $(2)$ and known $K_\mathrm{sp}$. Here, $[\ce{Pb^2+}] \approx \pu{0.1 M}$. You should think about the reson why we are using $[\ce{Pb^2+}] = \pu{0.1 M}$ here.
Once you find $[\ce{I-}]$ in water and in $\ce{Pb(NO3)2}$ solution, respectively, you would be able to see which solution makes $\ce{PbI2}$ more soluble.