When we unite potassium, which has a valence number of +1, that means that it has da electron, we unite it with iodine, which has a valence number of -1. That is, the iodine accepts an electron.
We form potassium iodide.
The formula is:
K + I ---> KI
It is a balanced equation since it uses one atom of each (iodine and potassium) for the formation of the product.
K + I - > KI Potassium (needs to lose 1 electron) responds with Iodine (needs to pick up 1 electron) to fulfill both component's octet, shaping a salt, potassium iodide This is a similar case for NaCl, simply unique components. Trust this made a difference.
It is crucial to match your units of Pressure, Volume, number of mole, and Temperature with the units of R. If you use the first value of R, which is 0.082057 L atm mol-1K-1, your unit for pressure must be atm, for volume must be liter, for temperature must be Kelvin.