Majn eqn you must understand is
acid + alkaline base = salt +water.
this is a general equation.
if in the chemical reaction ,one is acid and other one is alkaline base ,product should be a salt and water. This is the way to find that obtained product is a salt.
when writing eqn,look at the eg.
HCl + NaOH -> NaCl+H20
Salt can be written easily,
For production of water ,H+ and OH- ion are required. So for getting salt, H or H2 from acid and OH or (OH)2 from base are removed and the balance get joined.for eg from above H from Hcl is taken .so balance is Cl and OH frkm NaOH is taken .so Na is remaining .later Na and Cl is written joined gives Nacl.
For writing from product to reactants, just reverse can be used.
NaCl-> Na+ + cl-
We know OH have negative charge and H have positive charge.
so OH written with positive charge Na+ and H written with negative charge Cl- gives HCl + NaOH.
do similar according to number of H+ in the acid and OH- in alkaline base.
LIKE IF SATISFIED