J.R. S. answered 10/08/20
Ph.D. University Professor with 10+ years Tutoring Experience
The simple answer to your question is SOLUBILITY RULES. If the compound is soluble it gets labeled (aq). If it is insoluble, it gets labeled (s) and if it a gas it gets labeled (g). And finally, liquids, such as H2O get labeled (l). It's as simple as that. In the example you give we have....
2KI(aq) + Pb(NO3)2(aq) ==> 2KNO3(aq) + PbI2(s) because all species are soluble except PbI2 which is insoluble.
Does that answer your question?