Molar concentration of glucose =0.5M Molar
concentration of NaCl=0.1M
Molar concentration of BaCl2=0.5M
and molar concentration of MgCl2=0.1M
However as NaCl,BaCl2 and MgCl2 is an electrolyte.
One mole of NaCl give two mole ions, therefore molar concentration of particles in the solution =0.2M
One mole of BaCl2 give three mole ions,
therefore molar concentration of particles in the solution =1.5M.
and one mole of MgCl2 give three mole ions,
therefore molar concentration of particles in solution =0.3M.
As, osmotic pressure is directly proportional to the number of particles in the solution,
hence, increasing order of osmotic pressure will be.
Glucose <NaCl<MgCl2<BaCl2