Here’s how you can do that.
You’re dealing with a in which two soluble in aqueous solution react to form an insoluble solid that precipitates out of solution.
In this case lead(II) nitrate ##Pb(NO_3)_2## and sodium iodide ##NaI## both soluble in water will exist as ions in aqueous solution
##Pb(NO_3)_text(2(aq]) -> Pb_text((aq])^(2+) + 2NO_text(3(aq])^(-)##
##NaI_text((aq]) -> Na_text((aq])^(+) + I_text((aq])^(-)##
When these two are mixed the lead(II) cations ##Pb^(2+)## and the iodide anions ##I^(-)## will bind to each other and form lead(II) iodide an insoluble ionic compound.
The other product of the reaction is aqueous sodium nitrate ##NaNO_3## which will exist as ions in solution.
You can thus say that
##Pb(NO_3)_text(2(aq]) + color(red)(2)NaI_text((aq]) -> PbI_text(2(s]) darr + color(red)(2)NaNO_text(3(aq])##
The complete ionic equation which includes all the ions present in solution will look like this
##Pb_text((aq])^(2+) + 2NO_text(3(aq])^(-) + color(red)(2)Na_text((aq])^(+) + color(red)(2)I_text((aq])^(-) -> PbI_text(2(s]) darr + color(red)(2)Na_text((aq])^(+) + 2NO_text(3(aq])^(-)##
The net ionic equation which eliminates spectator ions i.e. the ions that are present on both sides of the equation will look like this
##Pb_text((aq])^(2+) + color(red)(cancel(color(black)(2NO_text(3(aq])^(-)))) + color(red)(cancel(color(black)(color(red)(2)Na_text((aq])^(+)))) + color(red)(2)I_text((aq])^(-) -> PbI_text(2(s]) darr + color(red)(cancel(color(black)(color(red)(2)Na_text((aq])^(+)))) + color(red)(cancel(color(black)(2NO_text(3(aq])^(-))))##
This will be equivalent to
##Pb_text((aq])^(2+) + color(red)(2)I_text((aq])^(-) -> PbI_text(2(s]) darr##
Lead(II) iodide is a yellow solid that precipitates out of solution.